This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/3] ELF: Group and sort output note sections by section alignments


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]