[PATCH] Linker fix for data-only sections
Daniel Gutson
dgutson@codesourcery.com
Wed Feb 3 16:42:00 GMT 2010
Nick Clifton wrote:
> Hi Daniel,
>
>> The attached patch attempts to fix this issue by always adding a $d at
>> the beginning of data sections that don't have a mapping symbol.
>
> I may be missing something here, but where in your patch do you check to
> make sure that the section is a data section and not a code section ?
>
Hi Nick,
thanks for reading the patch; maybe there's a confusion: ARM sections
may contain both code and data, ruled by the mapping symbols, so
(according to the EABI) we don't care if the section happens to have the
executable attribute.
I originally checked for the BFD section data flags, but the 'data-only'
flag is not useful here.
Daniel.
--
Daniel Gutson
CodeSourcery
www.codesourcery.com
More information about the Binutils
mailing list