public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4] PR28824, relro security issues
@ 2022-02-08  1:08 Alan Modra
  2022-02-08  1:08 ` [PATCH 1/4] " Alan Modra
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Alan Modra @ 2022-02-08  1:08 UTC (permalink / raw)
  To: binutils

The first two patches in this series fix relro protection for all
targets that might be running with MAXPAGESIZE larger than
COMMONPAGESIZE memory pages.  They also fix pr28734, the extra page
gap between text and data segments when relro.

See the first patch for lots of detail on what is going on.  I'll
leave this series a few days before committing in case someone spots a
bug or has constructive comments.

Alan Modra (4):
  PR28824, relro security issues
  PR28824, relro security issues, x86 keep COMMONPAGESIZE relro
  Remove bfd ELF_RELROPAGESIZE
  Don't pass around expld.dataseg pointer

 bfd/bfd-in2.h                    |  2 +-
 bfd/bfd.c                        |  9 +++----
 bfd/elf-bfd.h                    |  3 ---
 bfd/elf32-ppc.c                  |  1 -
 bfd/elf64-ppc.c                  |  1 -
 bfd/elfxx-target.h               | 11 --------
 ld/emultempl/elf-x86.em          |  1 +
 ld/ld.h                          |  4 +++
 ld/ldemul.c                      |  3 +--
 ld/ldexp.c                       | 33 ++++++++++++++++--------
 ld/ldexp.h                       |  5 +++-
 ld/ldlang.c                      | 43 ++++++++++++++++----------------
 ld/testsuite/ld-x86-64/pr18176.d |  1 +
 13 files changed, 59 insertions(+), 58 deletions(-)


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

end of thread, other threads:[~2022-02-14  3:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-08  1:08 [PATCH 0/4] PR28824, relro security issues Alan Modra
2022-02-08  1:08 ` [PATCH 1/4] " Alan Modra
2022-02-08  1:08 ` [PATCH 2/4] PR28824, relro security issues, x86 keep COMMONPAGESIZE relro Alan Modra
2022-02-14  2:18   ` Alan Modra
2022-02-14  3:13     ` H.J. Lu
2022-02-08  1:08 ` [PATCH 3/4] Remove bfd ELF_RELROPAGESIZE Alan Modra
2022-02-08  1:08 ` [PATCH 4/4] Don't pass around expld.dataseg pointer Alan Modra

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).