diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2007-04-05 16:16:28 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2007-04-05 16:16:28 +0000 |
commit | 9267588cdcaddad64078201dcbd3ea4a761c35d7 (patch) | |
tree | 024c525b2943fee0846ca256106e0df1ce494cbd /ld | |
parent | ea9cd3c85b1f4c4d8d54e1f70b505d5a0ae6ba39 (diff) | |
download | gdb-9267588cdcaddad64078201dcbd3ea4a761c35d7.zip gdb-9267588cdcaddad64078201dcbd3ea4a761c35d7.tar.gz gdb-9267588cdcaddad64078201dcbd3ea4a761c35d7.tar.bz2 |
bfd/
2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
PR ld/4304
* elflink.c (bfd_elf_final_link): Call einfo callback in
bfd_link_info instead of _bfd_error_handler for DT_TEXTREL
warning.
ld/testsuite/
2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
PR ld/4304
* ld-i386/i386.exp: Run "warn1".
* ld-i386/warn1.d: New file.
* ld-i386/warn1.s: Likewise.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/i386.exp | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/warn1.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/warn1.s | 5 |
4 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index d15e797..bea757e 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,5 +1,13 @@ 2007-04-05 H.J. Lu <hongjiu.lu@intel.com> + PR ld/4304 + * ld-i386/i386.exp: Run "warn1". + + * ld-i386/warn1.d: New file. + * ld-i386/warn1.s: Likewise. + +2007-04-05 H.J. Lu <hongjiu.lu@intel.com> + * ld-i386/combreloc.d: Remove #target: i?86-*-*. * ld-i386/reloc.d: Likewise. diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp index f008829..1032e8e 100644 --- a/ld/testsuite/ld-i386/i386.exp +++ b/ld/testsuite/ld-i386/i386.exp @@ -115,3 +115,4 @@ run_dump_test "pcrel8" run_dump_test "pcrel16" run_dump_test "pcrel16abs" run_dump_test "alloc" +run_dump_test "warn1" diff --git a/ld/testsuite/ld-i386/warn1.d b/ld/testsuite/ld-i386/warn1.d new file mode 100644 index 0000000..dd541f2 --- /dev/null +++ b/ld/testsuite/ld-i386/warn1.d @@ -0,0 +1,4 @@ +#name: --warn-shared-textrel --fatal-warnings +#as: --32 +#ld: -shared -melf_i386 --warn-shared-textrel --fatal-warnings +#error: .*warning: creating a DT_TEXTREL in a shared object. diff --git a/ld/testsuite/ld-i386/warn1.s b/ld/testsuite/ld-i386/warn1.s new file mode 100644 index 0000000..ca3481a --- /dev/null +++ b/ld/testsuite/ld-i386/warn1.s @@ -0,0 +1,5 @@ + .text + .globl foo + .type foo, @function +foo: + movl bar, %eax |