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 /bfd | |
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 'bfd')
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/elflink.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ab00026..813c13d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +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. + 2007-04-05 Alan Modra <amodra@bigpond.net.au> * elf32-spu.c (spu_elf_output_symbol_hook): New function. diff --git a/bfd/elflink.c b/bfd/elflink.c index 360ac69c..228debb 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -9944,8 +9944,8 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info) if (dyn.d_tag == DT_TEXTREL) { - _bfd_error_handler - (_("warning: creating a DT_TEXTREL in a shared object.")); + info->callbacks->einfo + (_("%P: warning: creating a DT_TEXTREL in a shared object.\n")); break; } } |