This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: stub symbols and relocs for powerpc64-linux


On Sun, Sep 26, 2004 at 04:48:32PM +0200, Yaakov Yaari wrote:
> I just realized that to create these stubs symbol you need to specify a new
> switch --emit-stub-syms.
> Would it be possible to emit both the symbols and relocs with one switch

Yes, I think that would be reasonable.

	* emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
	--emit-stub-syms automatically when --emit-relocs.

Index: ld/emultempl/ppc64elf.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/ppc64elf.em,v
retrieving revision 1.33
diff -u -p -r1.33 ppc64elf.em
--- ld/emultempl/ppc64elf.em	19 Aug 2004 07:47:24 -0000	1.33
+++ ld/emultempl/ppc64elf.em	26 Sep 2004 23:31:21 -0000
@@ -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");

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]