This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 0/3] ld: Orphan section placement tweaks
- From: Andrew Burgess <andrew dot burgess at embecosm dot com>
- To: binutils at sourceware dot org
- Cc: Andrew Burgess <andrew dot burgess at embecosm dot com>
- Date: Wed, 22 Feb 2017 00:04:04 +0000
- Subject: [PATCH 0/3] ld: Orphan section placement tweaks
- Authentication-results: sourceware.org; auth=none
This series is primarily intended to address two edge cases relating
to the placement of orphan sections where I think the current linker
behaviour is non-obvious. Both cases relate to how LMAs are assigned
to orphan sections.
The first patch is a small documentation extension to make crystal
clear somethng which I don't think is spelled out clearly enough in
the manual right now.
I have run this series against a wide range of targets for testing,
with no regressions. I did however, block the new tests from running
on a moderately sized sub-set of targets; the new tests make use of
rather restrictive linker scripts, the blocked targets all failed to
link or pass due to additional target-specific sections messing up the
results, or the target not being happy with the memory regions in the
test. I figure that the large number of targets the tests do run on
should be enough - let me know if this is a problem.
Thanks,
Andrew
---
Andrew Burgess (3):
ld: Orphan section documentation
ld: better handling of lma region for orphan sections
ld: Track changes to default region LMA even for empty sections
ld/ChangeLog | 20 ++++++++++++++++++
ld/NEWS | 6 ++++++
ld/ld.texinfo | 10 +++++----
ld/ldlang.c | 48 ++++++++++++++++++++++++++++++------------
ld/testsuite/ld-elf/orphan5.d | 12 +++++++++++
ld/testsuite/ld-elf/orphan5.ld | 32 ++++++++++++++++++++++++++++
ld/testsuite/ld-elf/orphan5.s | 11 ++++++++++
ld/testsuite/ld-elf/orphan6.d | 10 +++++++++
ld/testsuite/ld-elf/orphan6.s | 8 +++++++
9 files changed, 139 insertions(+), 18 deletions(-)
create mode 100644 ld/testsuite/ld-elf/orphan5.d
create mode 100644 ld/testsuite/ld-elf/orphan5.ld
create mode 100644 ld/testsuite/ld-elf/orphan5.s
create mode 100644 ld/testsuite/ld-elf/orphan6.d
create mode 100644 ld/testsuite/ld-elf/orphan6.s
--
2.5.1