]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/readelf.c
Re-apply "elf: Properly compute offsets of note descriptor and next note"
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 24 Nov 2017 22:49:36 +0000 (14:49 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 24 Nov 2017 22:52:15 +0000 (14:52 -0800)
commit276da9b31bd6e3eb8d1dd814c867266f59f29093
tree1acbee1595881224123021036356e0d43316ccf3
parente547c119d043f2ecffb70452020ab9150d083a91
Re-apply "elf: Properly compute offsets of note descriptor and next note"

CORE PT_NOTE segments may have p_align values of 0 or 1.  gABI specifies
that PT_NOTE alignment should be aligned to 4 bytes for 32-bit objects
and to 8 bytes for 64-bit objects.  If segment alignment is less than 4,
we use 4 byte alignment.
bfd/ChangeLog
bfd/elf.c
binutils/ChangeLog
binutils/readelf.c
include/ChangeLog
include/elf/external.h