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: [PATCH] Linker fix for data-only sections




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


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