aboutsummaryrefslogtreecommitdiff
path: root/gold/reloc.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2008-12-12 16:33:05 +0000
committerIan Lance Taylor <ian@airs.com>2008-12-12 16:33:05 +0000
commit6894310219af8c9a811814973c3375716d2e3dde (patch)
treec1835c8f2e0a1dad7e4e9dc92c89ce42c37c9811 /gold/reloc.cc
parentb0074644c422c28e8be29f9ba5336d80cd05a4b3 (diff)
downloadfsf-binutils-gdb-6894310219af8c9a811814973c3375716d2e3dde.zip
fsf-binutils-gdb-6894310219af8c9a811814973c3375716d2e3dde.tar.gz
fsf-binutils-gdb-6894310219af8c9a811814973c3375716d2e3dde.tar.bz2
* target-reloc.h (Default_scan_relocatable_relocs): Only discard
r_type == 0 for a local symbol with r_sym == 0. (scan_relocatable_relocs): Pass r_sym to local_non_section_strategy. * reloc.cc (Emit_relocs_strategy::local_non_section_strategy): Add r_sym parameter.
Diffstat (limited to 'gold/reloc.cc')
-rw-r--r--gold/reloc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/reloc.cc b/gold/reloc.cc
index 9a444a2..f6bef1d 100644
--- a/gold/reloc.cc
+++ b/gold/reloc.cc
@@ -368,7 +368,7 @@ class Emit_relocs_strategy
public:
// A local non-section symbol.
inline Relocatable_relocs::Reloc_strategy
- local_non_section_strategy(unsigned int, Relobj*)
+ local_non_section_strategy(unsigned int, Relobj*, unsigned int)
{ return Relocatable_relocs::RELOC_COPY; }
// A local section symbol.