.init_array vs. .ctors sections on ARM

Alan Modra amodra@gmail.com
Tue Oct 9 08:09:00 GMT 2018

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

More information about the Binutils mailing list