REGINFO program header is lost with --gc-sections on mipsel

Kertész Csaba csaba.kertesz@gmail.com
Wed Nov 3 15:28:00 GMT 2010


Hi,

> If you can't fix your copy of the binutils, then you will need to use a
> linker script which uses KEEP.  You can get the default linker script
> using ld --verbose.  Look for the .reginfo line, and edit it to use
> KEEP (*(.reginfo) ) or something similar.  Then always use that linker
> script when linking with --gc-sections.

Works like a charm.

Thanks for your help,
  Csaba



More information about the Binutils mailing list