public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v7 0/4] Properly align all PT_LOAD segments with tests
@ 2022-01-03 23:04 H.J. Lu
  2022-01-03 23:04 ` [PATCH v7 1/4] elf: Properly align all PT_LOAD segments [BZ #28676] H.J. Lu
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: H.J. Lu @ 2022-01-03 23:04 UTC (permalink / raw)
  To: libc-alpha; +Cc: Florian Weimer, Adhemerval Zanella

Changes from v6:

1. Rebase.
2. Add tests for other p_align cases.

Linker may set p_align of a PT_LOAD segment larger than p_align of the
first PT_LOAD segment to satisfy a section alignment.  We should align
the first PT_LOAD segment to the maximum p_align of all PT_LOAD segments.

H.J. Lu (4):
  elf: Properly align all PT_LOAD segments [BZ #28676]
  elf: Add a test for PT_LOAD segments with mixed p_align [BZ #28676]
  elf: Add a test for PT_LOAD segments with p_align == 1 [BZ #28688]
  elf: Add a test for PT_LOAD segments with invalid p_align [BZ #28688]

 elf/Makefile               |  42 +++++++++++++
 elf/dl-load.c              |   9 ++-
 elf/tst-elf-edit.h         | 126 +++++++++++++++++++++++++++++++++++++
 elf/tst-p_align1.c         |  27 ++++++++
 elf/tst-p_align2.c         |  27 ++++++++
 elf/tst-p_align3.c         |  27 ++++++++
 elf/tst-p_align3.sh        |  26 ++++++++
 elf/tst-p_alignmod1-edit.c |  34 ++++++++++
 elf/tst-p_alignmod2-edit.c |  27 ++++++++
 elf/tst-p_alignmod3.c      |  22 +++++++
 10 files changed, 366 insertions(+), 1 deletion(-)
 create mode 100644 elf/tst-elf-edit.h
 create mode 100644 elf/tst-p_align1.c
 create mode 100644 elf/tst-p_align2.c
 create mode 100644 elf/tst-p_align3.c
 create mode 100755 elf/tst-p_align3.sh
 create mode 100644 elf/tst-p_alignmod1-edit.c
 create mode 100644 elf/tst-p_alignmod2-edit.c
 create mode 100644 elf/tst-p_alignmod3.c

-- 
2.33.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-01-18 21:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-03 23:04 [PATCH v7 0/4] Properly align all PT_LOAD segments with tests H.J. Lu
2022-01-03 23:04 ` [PATCH v7 1/4] elf: Properly align all PT_LOAD segments [BZ #28676] H.J. Lu
2022-01-18 17:48   ` Adhemerval Zanella
2022-01-18 21:46     ` H.J. Lu
2022-01-03 23:04 ` [PATCH v7 2/4] elf: Add a test for PT_LOAD segments with mixed p_align " H.J. Lu
2022-01-18 16:25   ` Adhemerval Zanella
2022-01-18 21:53     ` H.J. Lu
2022-01-03 23:04 ` [PATCH v7 3/4] elf: Add a test for PT_LOAD segments with p_align == 1 [BZ #28688] H.J. Lu
2022-01-18 16:32   ` Adhemerval Zanella
2022-01-18 16:36     ` Adhemerval Zanella
2022-01-18 21:55     ` H.J. Lu
2022-01-03 23:04 ` [PATCH v7 4/4] elf: Add a test for PT_LOAD segments with invalid p_align " H.J. Lu
2022-01-18 18:05   ` Adhemerval Zanella
2022-01-18 21:50     ` H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).