359987e218
Update tests to expect warning of "-z dynamic-undefined-weak ignored"
from
commit 22b1ee183d
Author: Alan Modra <amodra@gmail.com>
Date: Thu Oct 12 13:19:10 2017 +1030
Set dynamic_undefined_weak to zero for static PIEs
* testsuite/ld-elf/pr22269b.d: Expect warning of
"-z dynamic-undefined-weak ignored".
* testsuite/ld-i386/pr19636-1j.d: Likewise.
* testsuite/ld-i386/pr19636-1k.d: Likewise.
* testsuite/ld-i386/pr19636-1l.d: Likewise.
* testsuite/ld-x86-64/pr19636-2j.d: Likewise.
* testsuite/ld-x86-64/pr19636-2k.d: Likewise.
* testsuite/ld-x86-64/pr19636-2l.d: Likewise.
* testsuite/ld-x86-64/pr19636-2m.d: Likewise.
21 lines
596 B
Makefile
21 lines
596 B
Makefile
#source: pr19636-1.s
|
|
#as: --32 -mrelax-relocations=no
|
|
#ld: -pie -E -m elf_i386 --no-dynamic-linker -z dynamic-undefined-weak
|
|
#readelf : -r --wide -x .got -x .got.plt --dyn-syms
|
|
#warning: -z dynamic-undefined-weak ignored
|
|
|
|
There are no relocations in this file.
|
|
|
|
Symbol table '\.dynsym' contains [0-9]+ entries:
|
|
+Num: +Value +Size Type +Bind +Vis +Ndx Name
|
|
+0: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND +
|
|
#...
|
|
+[0-9]+: +[a-f0-9]+ +0 +NOTYPE +GLOBAL +DEFAULT +[0-9]+ +_start
|
|
#...
|
|
|
|
Hex dump of section '.got':
|
|
0x[0-9a-f]+ [0 ]+\.+
|
|
|
|
Hex dump of section '.got.plt':
|
|
0x[0-9a-f]+ +[0-9a-f]+ +[0 ]+ .\.+
|