aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/emultempl/ppc64elf.em1
2 files changed, 6 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 218a304..698b3ad 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-27 Alan Modra <amodra@bigpond.net.au>
+
+ * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
+ --emit-stub-syms automatically when --emit-relocs.
+
2004-09-24 Paul Brook <paul@codeosurcery.com>
* scripttempl/elf.sc: Keep .preinit_array, .init_array and
diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em
index 094a4fb..8699a82 100644
--- a/ld/emultempl/ppc64elf.em
+++ b/ld/emultempl/ppc64elf.em
@@ -368,6 +368,7 @@ gld${EMULATION_NAME}_finish (void)
char *msg = NULL;
char *line, *endline;
+ emit_stub_syms |= link_info.emitrelocations;
if (!ppc64_elf_build_stubs (emit_stub_syms, &link_info,
config.stats ? &msg : NULL))
einfo ("%X%P: can not build stubs: %E\n");