This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: .init_array vs. .ctors sections on ARM
- From: Alan Modra <amodra at gmail dot com>
- To: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Tue, 9 Oct 2018 18:39:41 +1030
- Subject: Re: .init_array vs. .ctors sections on ARM
- References: <65dd854d-57ec-78da-3c77-d0a13ebeb2d3@embedded-brains.de>
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