From: H.J. Lu Date: Tue, 20 Nov 2012 22:16:05 +0000 (+0000) Subject: Implement ELF linker -z global option X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b039ef04574106adbac611394b008109967d2a73;p=binutils-gdb.git 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. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 4478030cc8d..7996b23f1f6 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2012-11-20 H.J. Lu + + * ld.texinfo: Document "-z global". + + * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Support + "-z global". + (gld${EMULATION_NAME}_list_options): Likewise. + 2012-11-15 Maxim Kuvyrkov Port lib32 arrangement from Debian. diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 9e263a9e9f9..acb01e5df1c 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -2300,6 +2300,8 @@ fragment < + + * ld-elf/global1.d: New file. + 2012-11-07 James Murray * 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 00000000000..eae7f0d908a --- /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