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: REGINFO program header is lost with --gc-sections on mipsel


KertÃsz Csaba <csaba.kertesz@gmail.com> writes:

>> 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.

Please also consider filing a bug report at
http://sourceware.org/bugzilla/ , as future binutils releases should be
fixed so that this is not required.  Thanks.

Ian


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