This is the mail archive of the binutils@sourceware.org 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: ld -e number makes an entry in symbol table


On Thu, Sep 10, 2009 at 11:56:18AM -0400, Daniel Jacobowitz wrote:
> I'd suggest that, rather than ENTRY implying EXTERN, the finally
> selected entry point is treated as an extern.  So if the linker script
> says ENTRY(foo) and the command line says -e bar, we don't need foo.

Good, that's what I think too.  The ldlang_add_undef should happen
in main just before the ldemul_after_parse call, and be just like the
existing calls in pe.em/pep.em, ie. don't add the undef when
relocatable, and of course not for -e <number>.

-- 
Alan Modra
Australia Development Lab, IBM


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