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: Compressed code sections


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



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