This is the mail archive of the
mailing list for the binutils project.
Re: -gc-sections for elf32-dlx and possible buglette in elf32-target.h
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: "Dave Korn" <dk at artimi dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: 30 Jan 2004 09:56:27 -0500
- Subject: Re: -gc-sections for elf32-dlx and possible buglette in elf32-target.h
- References: <NUTMEGqNRAOWwXRPm6t00000078@NUTMEG.CAM.ARTIMI.COM>
"Dave Korn" <firstname.lastname@example.org> writes:
> and so I'm wondering if garbage collection counts as one of the 'unusual
> actions' referred to above, or if other stuff in the elf backend implicitly
> assumes it's running under the elf template? There are no shared libs or
> dynamic objects on the dlx target, which is what most of the stuff in
> elf32.em seems to be about, so I'd guess that it might be ok.... but I just
> dunno whether the elf backend demands the elf emulation or will be happy
> enough without it. I can't find any other elf targets that think they can
> use the generic emulation, though, so it does make me suspicious that it's
> wrong to try and use them together.
Hmmm, good question. It's probably safer to use TEMPLATE_NAME to
elf32. I don't know whether it is actually required if you don't need
shared library support, but it shouldn't do any harm.