diff options
author | Ian Lance Taylor <ian@airs.com> | 2009-03-04 06:46:27 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2009-03-04 06:46:27 +0000 |
commit | 031cdbed18938f96e4607b717e864928bbb4643e (patch) | |
tree | 73d294fac4e833a02f6a523a953083822cad402b /gold/target-reloc.h | |
parent | 727fc41e077139570ea8b8ddfd6c546b2a55627c (diff) | |
download | gdb-031cdbed18938f96e4607b717e864928bbb4643e.zip gdb-031cdbed18938f96e4607b717e864928bbb4643e.tar.gz gdb-031cdbed18938f96e4607b717e864928bbb4643e.tar.bz2 |
PR 9918
* target-reloc.h (relocate_section): Pass output_section to
relocate.
* i386.cc (Target_i386::should_apply_static_reloc): Add
output_section parameter. Change all callers.
(Target_i386::Relocate::relocate): Add output_section parameter.
* x86_64.cc (Target_x86_64::Relocate::relocate): Likewise.
* sparc.cc (Target_sparc::Relocate::relocate): Likewise.
* powerpc.cc (Target_powerpc::Relocate::relocate): Likewise.
* testsuite/two_file_shared.sh: New script.
* testsuite/Makefile.am (check_SCRIPTS): Add two_file_shared.sh.
(check_DATA): Add two_file_shared.dbg.
(two_file_shared.dbg): New target.
* testsuite/Makefile.in: Rebuild.
Diffstat (limited to 'gold/target-reloc.h')
-rw-r--r-- | gold/target-reloc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gold/target-reloc.h b/gold/target-reloc.h index 3e788e1..4fcbfa3 100644 --- a/gold/target-reloc.h +++ b/gold/target-reloc.h @@ -268,8 +268,9 @@ relocate_section( psymval = &symval; } - if (!relocate.relocate(relinfo, target, i, reloc, r_type, sym, psymval, - view + offset, view_address + offset, view_size)) + if (!relocate.relocate(relinfo, target, output_section, i, reloc, + r_type, sym, psymval, view + offset, + view_address + offset, view_size)) continue; if (offset < 0 || static_cast<section_size_type>(offset) >= view_size) |