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: .init_array vs. .ctors sections on ARM


On Tue, Oct 09, 2018 at 09:40:56AM +0200, Sebastian Huber wrote:
> Why are the .ctors and .dtors input sections used in two output sections?

Where they go is configurable.  See ld/scriptempl/elf.sc

> Would this result in two output sections with partly identical content?

No, the first match for an input section in a script wins.

-- 
Alan Modra
Australia Development Lab, IBM


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