This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFC: ld: Add --section-ordering-file FILE
- From: Nick Clifton <nickc at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>, binutils at sourceware dot org
- Date: Tue, 16 Apr 2019 08:56:12 +0100
- Subject: Re: RFC: ld: Add --section-ordering-file FILE
- References: <20190415224824.GA26797@intel.com>
Hi H.J.
> Does this sound a good idea?
Maybe, but it does raise some questions in my mind:
* Why is this feature needed ?
* Couldn't the same result be achieved by using a custom linker script ?
* How would the feature interact with linker scripts that already have
specific section placements (well ones that intersect with the sections
in the --section-order list) ?
* How would these sections be placed relative to other non-ordered sections ?
* How would --section-ordering-file interact with --sort-section ?
* Is it an error is a section in the ordering file is not present in the input ?
Cheers
Nick