https://sourceware.org/bugzilla/show_bug.cgi?id=33504

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> ---
I think the test for ld/22269 (-z dynamic-undefined-weak) fails for
a similar reason:

/home/dave/gnu/binutils/objdir64/ld/../gas/as-new  --defsym ALIGN=3    -o
tmpdir
/pr22269.o /home/dave/gnu/binutils/src/ld/testsuite/ld-elf/pr22269.s
Executing on host: sh -c {/home/dave/gnu/binutils/objdir64/ld/../gas/as-new 
--d
efsym ALIGN=3    -o tmpdir/pr22269.o
/home/dave/gnu/binutils/src/ld/testsuite/ld
-elf/pr22269.s 2>&1}  /dev/null dump.tmp (timeout = 300)
spawn [open ...]
./ld-new  -z nomemory-seal  -L/home/dave/gnu/binutils/src/ld/testsuite/ld-elf 
-
pie --no-dynamic-linker -z dynamic-undefined-weak -o tmpdir/dump
tmpdir/pr22269.
o
Executing on host: sh -c {./ld-new  -z nomemory-seal 
-L/home/dave/gnu/binutils/
src/ld/testsuite/ld-elf  -pie --no-dynamic-linker -z dynamic-undefined-weak -o
t
mpdir/dump tmpdir/pr22269.o  2>&1}  /dev/null dump.tmp (timeout = 300)
spawn [open ...]
./ld-new: warning: -z dynamic-undefined-weak ignored
succeeded with: <./ld-new: warning: -z dynamic-undefined-weak ignored>,
expected
: <-z dynamic-undefined-weak ignored>
/home/dave/gnu/binutils/objdir64/ld/../binutils/readelf  -r -x .data.rel.ro
tmpd
ir/dump > tmpdir/dump.out
Executing on host: sh -c
{/home/dave/gnu/binutils/objdir64/ld/../binutils/readel
f  -r -x .data.rel.ro tmpdir/dump > tmpdir/dump.out 2>dump.tmp}  /dev/null 
(tim
eout = 300)
spawn [open ...]
regexp_diff match failure
regexp "^There are no relocations in this file.$"
line   "Relocation section '.rela.dyn' at offset 0x288 contains 1 entry:"
regexp_diff match failure
regexp "^Hex dump of section '.data.rel.ro':$"
line   "  Offset          Info           Type           Sym. Value    Sym. Name
+ Addend"
regexp_diff match failure
regexp "^  0x[a-f0-9]+ [0 ]+[ ]+.+$"
line   "0000000112a1  000100000050 R_PARISC_DIR64    0000000000000000 func + 0"
extra lines in tmpdir/dump.out starting with "^Hex dump of section
'.data.rel.ro':$"
EOF from /home/dave/gnu/binutils/src/ld/testsuite/ld-elf/pr22269b.d
FAIL: PR ld/22269 (-z dynamic-undefined-weak)

/home/dave/gnu/binutils/objdir64/ld/../gas/as-new  --defsym ALIGN=3    -o
tmpdir/pr22269.o /home/dave/gnu/binutils/src/ld/testsuite/ld-elf/pr22269.s
./ld-new  -z nomemory-seal  -L/home/dave/gnu/binutils/src/ld/testsuite/ld-elf 
-pie --no-dynamic-linker -z dynamic-undefined-weak -o tmpdir/dump
tmpdir/pr22269.o
/home/dave/gnu/binutils/objdir64/ld/../binutils/readelf  -r -x .data.rel.ro
tmpdir/dump > tmpdir/dump.out

dave@pad:~/gnu/binutils/objdir64/ld/tmpdir$ cat dump.out

Relocation section '.rela.dyn' at offset 0x288 contains 1 entry:
  Offset          Info           Type           Sym. Value    Sym. Name +
Addend
0000000112a1  000100000050 R_PARISC_DIR64    0000000000000000 func + 0

Hex dump of section '.data.rel.ro':
  0x000112a1 00000000 00000000                   ........

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to