[PATCH 0/3] ELF: Group and sort output note sections by section alignments
H.J. Lu
hjl.tools@gmail.com
Mon Oct 1 18:55:00 GMT 2018
To support putting all SHT_NOTE sections with the same section alignment
into a single PT_NOTE segment, we need to
1: Sort output note sections by section alignments in both output section
list as well as output section statement list.
2: Put all adjacent SHT_NOTE sections with the same section alignment
into a single PT_NOTE segment even when the section alignment != 4 bytes.
OK for master branch?
H.J. Lu (3):
ELF: Group PT_NOTE segments by section alignments
ELF: Group and sort output note sections by section alignments
ELF: Add testcases for PR ld/23658
bfd/elf.c | 50 +++++------
ld/ldlang.c | 140 ++++++++++++++++++++++++++++++-
ld/testsuite/ld-elf/pr23658-1.d | 15 ++++
ld/testsuite/ld-elf/pr23658-1a.s | 21 +++++
ld/testsuite/ld-elf/pr23658-1b.s | 16 ++++
ld/testsuite/ld-elf/pr23658-1c.s | 16 ++++
ld/testsuite/ld-elf/pr23658-1d.s | 16 ++++
ld/testsuite/ld-elf/pr23658-2.rd | 6 ++
ld/testsuite/ld-elf/pr23658-3.d | 8 ++
ld/testsuite/ld-elf/pr23658-3.s | 4 +
ld/testsuite/ld-elf/pr23658-3.t | 14 ++++
ld/testsuite/ld-elf/shared.exp | 21 +++++
12 files changed, 301 insertions(+), 26 deletions(-)
create mode 100644 ld/testsuite/ld-elf/pr23658-1.d
create mode 100644 ld/testsuite/ld-elf/pr23658-1a.s
create mode 100644 ld/testsuite/ld-elf/pr23658-1b.s
create mode 100644 ld/testsuite/ld-elf/pr23658-1c.s
create mode 100644 ld/testsuite/ld-elf/pr23658-1d.s
create mode 100644 ld/testsuite/ld-elf/pr23658-2.rd
create mode 100644 ld/testsuite/ld-elf/pr23658-3.d
create mode 100644 ld/testsuite/ld-elf/pr23658-3.s
create mode 100644 ld/testsuite/ld-elf/pr23658-3.t
--
2.17.1
More information about the Binutils
mailing list