diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-11-20 22:16:05 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-11-20 22:16:05 +0000 |
commit | b039ef04574106adbac611394b008109967d2a73 (patch) | |
tree | 4a43b619abbc3c62b8d267a0797003717c5d77e9 /ld/testsuite | |
parent | ace21957447369d273622e8869f1183549cded3d (diff) | |
download | gdb-b039ef04574106adbac611394b008109967d2a73.zip gdb-b039ef04574106adbac611394b008109967d2a73.tar.gz gdb-b039ef04574106adbac611394b008109967d2a73.tar.bz2 |
Implement ELF linker -z global option
ld/
* ld.texinfo: Document "-z global".
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Support
"-z global".
(gld${EMULATION_NAME}_list_options): Likewise.
ld/testsuite/
* ld-elf/global1.d: New file.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/global1.d | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 0e79548..81ec67c 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-11-20 H.J. Lu <hongjiu.lu@intel.com> + + * ld-elf/global1.d: New file. + 2012-11-07 James Murray <jsm@jsm-net.demon.co.uk> * ld-m68hc11/movw.d: New test for 16bit relocate. diff --git a/ld/testsuite/ld-elf/global1.d b/ld/testsuite/ld-elf/global1.d new file mode 100644 index 0000000..eae7f0d --- /dev/null +++ b/ld/testsuite/ld-elf/global1.d @@ -0,0 +1,8 @@ +#source: start.s +#ld: -shared -z global +#readelf: -d +#target: *-*-linux* *-*-gnu* + +#... + 0x0*6ffffffb \(FLAGS_1\) *Flags: GLOBAL +#pass |