[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/30733] New: ld: SHF_GNU_RETAIN 7a' test fail on hppa
From: |
sam at gentoo dot org |
Subject: |
[Bug ld/30733] New: ld: SHF_GNU_RETAIN 7a' test fail on hppa |
Date: |
Tue, 08 Aug 2023 01:04:47 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30733
Bug ID: 30733
Summary: ld: SHF_GNU_RETAIN 7a' test fail on hppa
Product: binutils
Version: 2.41
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: sam at gentoo dot org
Target Milestone: ---
$ ld/ld-new --version | head -1
GNU ld (GNU Binutils) 2.41.50.20230808
$ grep -rsin ^FAIL ./*/*.sum
./ld/ld.sum:502:FAIL: relocatable with script
./ld/ld.sum:512:FAIL: SHF_GNU_RETAIN 7a
./ld/ld.sum:1145:FAIL: ELF weak (alias)
```
/home/sam/git/binutils-gdb/ld/../gas/as-new --defsym ALIGN=2 -o
tmpdir/retain7.o /home/sam/git/binutils-gdb/ld/testsuite/ld-elf/retain7.s
Executing on host: sh -c {/home/sam/git/binutils-gdb/ld/../gas/as-new --defsym
ALIGN=2 -o tmpdir/retain7.o
/home/sam/git/binutils-gdb/ld/testsuite/ld-elf/retain7.s 2>&1} /dev/null
dump.tmp (timeout = 300)
spawn [open ...]
./ld-new -z norelro -L/home/sam/git/binutils-gdb/ld/testsuite/ld-elf -e
_start --gc-sections -o tmpdir/dump tmpdir/retain7.o
Executing on host: sh -c {./ld-new -z norelro
-L/home/sam/git/binutils-gdb/ld/testsuite/ld-elf -e _start --gc-sections -o
tmpdir/dump tmpdir/retain7.o 2>&1} /dev/null dump.tmp (timeout = 300)
spawn [open ...]
/home/sam/git/binutils-gdb/ld/../binutils/readelf -h tmpdir/dump >
tmpdir/dump.out
Executing on host: sh -c {/home/sam/git/binutils-gdb/ld/../binutils/readelf -h
tmpdir/dump > tmpdir/dump.out 2>dump.tmp} /dev/null (timeout = 300)
spawn [open ...]
fail if no difference
FAIL: SHF_GNU_RETAIN 7a
/home/sam/git/binutils-gdb/ld/../gas/as-new --defsym ALIGN=2 -o
tmpdir/retain7.o /home/sam/git/binutils-gdb/ld/testsuite/ld-elf/retain7.s
Executing on host: sh -c {/home/sam/git/binutils-gdb/ld/../gas/as-new --defsym
ALIGN=2 -o tmpdir/retain7.o
/home/sam/git/binutils-gdb/ld/testsuite/ld-elf/retain7.s 2>&1} /dev/null
dump.tmp (timeout = 300)
spawn [open ...]
./ld-new -z norelro -L/home/sam/git/binutils-gdb/ld/testsuite/ld-elf -r -o
tmpdir/dump tmpdir/retain7.o
Executing on host: sh -c {./ld-new -z norelro
-L/home/sam/git/binutils-gdb/ld/testsuite/ld-elf -r -o tmpdir/dump
tmpdir/retain7.o 2>&1} /dev/null dump.tmp (timeout = 300)
spawn [open ...]
/home/sam/git/binutils-gdb/ld/../binutils/readelf -h tmpdir/dump >
tmpdir/dump.out
Executing on host: sh -c {/home/sam/git/binutils-gdb/ld/../binutils/readelf -h
tmpdir/dump > tmpdir/dump.out 2>dump.tmp} /dev/null (timeout = 300)
spawn [open ...]
```
and:
```
~/git/binutils-gdb/ld $ ./ld-new -z norelro
-L/home/sam/git/binutils-gdb/ld/testsuite/ld-elf -r -o tmpdir/dump
tmpdir/retain7.o
~/git/binutils-gdb/ld $ /home/sam/git/binutils-gdb/ld/../binutils/readelf -h
tmpdir/dump > tmpdir/dump.out
~/git/binutils-gdb/ld $ cat tmpdir/dump.out
ELF Header:
Magic: 7f 45 4c 46 01 02 01 03 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, big endian
Version: 1 (current)
OS/ABI: UNIX - GNU
ABI Version: 0
Type: REL (Relocatable file)
Machine: HPPA
Version: 0x1
Entry point address: 0x0
Start of program headers: 0 (bytes into file)
Start of section headers: 252 (bytes into file)
Flags: 0x210, PA-RISC 1.1
Size of this header: 52 (bytes)
Size of program headers: 0 (bytes)
Number of program headers: 0
Size of section headers: 40 (bytes)
Number of section headers: 8
Section header string table index: 7
~/git/binutils-gdb/ld $
```
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/30733] New: ld: SHF_GNU_RETAIN 7a' test fail on hppa,
sam at gentoo dot org <=
- [Bug ld/30733] ld: SHF_GNU_RETAIN 7a' test fail on hppa, sam at gentoo dot org, 2023/08/07
- [Bug ld/30733] ld: SHF_GNU_RETAIN 7a' test fail on hppa, sam at gentoo dot org, 2023/08/07
- [Bug ld/30733] ld: SHF_GNU_RETAIN 7a' test fail on hppa, cvs-commit at gcc dot gnu.org, 2023/08/08
- [Bug ld/30733] ld: SHF_GNU_RETAIN 7a' test fail on hppa, sam at gentoo dot org, 2023/08/08
- [Bug ld/30733] ld: SHF_GNU_RETAIN 7a' test fail on hppa, sam at gentoo dot org, 2023/08/08
- [Bug ld/30733] ld: SHF_GNU_RETAIN 7a' test fail on hppa, cvs-commit at gcc dot gnu.org, 2023/08/13