https://sourceware.org/bugzilla/show_bug.cgi?id=27708
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <h...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9917b5596a372317c9708c7166cff9dd69b62d5e commit 9917b5596a372317c9708c7166cff9dd69b62d5e Author: H.J. Lu <hjl.to...@gmail.com> Date: Wed Apr 14 05:30:59 2021 -0700 elf: Set p_memsz to p_filesz for loadable PT_NOTE segment Since p_memsz of the loadable PT_NOTE segment should be the same as p_filesz, set p_memsz on the loadable PT_NOTE segment when updating p_filesz. bfd/ PR binutils/27708 * elf.c (assign_file_positions_for_non_load_sections): Set p_memsz to p_filesz for the loadable PT_NOTE segment. binutils/ PR binutils/27708 * testsuite/binutils-all/x86-64/pr27708.dump: New file. * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise. * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708 test. -- You are receiving this mail because: You are on the CC list for the bug.