aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-avr.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-02-14 10:45:51 +1030
committerAlan Modra <amodra@gmail.com>2017-02-17 01:43:57 +1030
commita2db675b74394252dc8de30921f9064ebd2cdf0e (patch)
tree993ece0f7c7b437841240250c7ee28bd02a4b819 /bfd/elf32-avr.c
parent8a3cacb06d6ecfbe3ab0e0059bf6a4eb8b4b9dc6 (diff)
downloadgdb-a2db675b74394252dc8de30921f9064ebd2cdf0e.zip
gdb-a2db675b74394252dc8de30921f9064ebd2cdf0e.tar.gz
gdb-a2db675b74394252dc8de30921f9064ebd2cdf0e.tar.bz2
hppa -z relro again
I misunderstood the hppa alias problem. File offsets of segments need to be such that no page is mapped twice with different permissions. (Which still seems to me like something the kernel could fix, but anyhow, this is not so difficult to achieve in ld.) PR 21000 bfd/ * elf-bfd.h (struct elf_backend_data): Add no_page_alias. * elfxx-target.h (elf_backend_no_page_alias): Define. (elfNN_bed): Init new field. * elf.c (assign_file_positions_for_load_sections): If no_page_alias ensure PT_LOAD segment starts on a new page. * elf32-hppa.c (elf_backend_no_page_alias): Define. ld/ * testsuite/ld-elf/loadaddr1.d: Adjust for hppa file offsets. * testsuite/ld-elf/loadaddr2.d: Likewise. * testsuite/ld-elf/loadaddr3a.d: Likewise. * testsuite/ld-scripts/rgn-at5.d: Likewise.
Diffstat (limited to 'bfd/elf32-avr.c')
0 files changed, 0 insertions, 0 deletions