Compressed code sections

Nick Clifton nickc@redhat.com
Mon Jul 7 15:52:00 GMT 2008


Hi Will,

> I'm implementing support for a code compression technology, and my
> first approach to implementation was to modify ld so that on a final
> link the code sections would be compressed. This proves to be
> difficult because bfd does not seem to have support for an on-disk
> section being smaller than the same section in memory (i.e. we have
> vma and lma, but just one size per section). Are there any hooks in
> the linker that might be able to do this?

Not really no.  Sorry.

You might try looking at the sources for the new linker (gold) since 
that is not using the BFD library.

You might also consider creating your own tool to be run after the 
linker which does the section compression.

Cheers
   Nick




More information about the Binutils mailing list