This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld: compressed sections that depend on the symtab and strtab contents (linker people, am I crazy?)
- From: Nick Clifton <nickc at redhat dot com>
- To: Nick Alcock <nick dot alcock at oracle dot com>, binutils at sourceware dot org
- Date: Wed, 7 Aug 2019 15:02:20 +0100
- Subject: Re: ld: compressed sections that depend on the symtab and strtab contents (linker people, am I crazy?)
- References: <875zohzy7e.fsf@esperi.org.uk> <871rz5zuye.fsf@esperi.org.uk> <87wogxydwp.fsf@esperi.org.uk> <87ftnlxqs0.fsf_-_@esperi.org.uk> <87bly8yfgb.fsf@esperi.org.uk>
Hi Nick,
Sorry to respond to this thread so late.
It sounds to me like you might be better off not trying to optimize
the CTF string table at all. Just output it with duplicated strings
and keep things simple. You could then add a feature to objcopy which
would go through a fully linked binary and remove duplicates. There
is already precedence for this kind of thing with its note merging
capabilities.
Cheers
Nick