From b039ef04574106adbac611394b008109967d2a73 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 20 Nov 2012 22:16:05 +0000 Subject: [PATCH] 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. --- ld/ChangeLog | 8 ++++++++ ld/emultempl/elf32.em | 5 +++++ ld/ld.texinfo | 5 +++++ ld/testsuite/ChangeLog | 4 ++++ ld/testsuite/ld-elf/global1.d | 8 ++++++++ 5 files changed, 30 insertions(+) create mode 100644 ld/testsuite/ld-elf/global1.d 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 -- 2.30.2