[PATCH 0/4] PR28824, relro security issues

Alan Modra amodra@gmail.com
Tue Feb 8 01:08:29 GMT 2022


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



More information about the Binutils mailing list