aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorFrederic Cambus <fred@statdns.com>2023-03-23 15:19:38 +0000
committerNick Clifton <nickc@redhat.com>2023-03-23 15:19:38 +0000
commit80251d4185048c6391b74abe96c754e8a536b35f (patch)
treee4e560f3665261b4160b5542aa7cb83775698f65 /binutils/readelf.c
parent91ffa03af1cc32515190c3b52d7b964f5abead5f (diff)
downloadgdb-80251d4185048c6391b74abe96c754e8a536b35f.zip
gdb-80251d4185048c6391b74abe96c754e8a536b35f.tar.gz
gdb-80251d4185048c6391b74abe96c754e8a536b35f.tar.bz2
Add support to readelf for the PT_OPENBSD_MUTABLE segment type.
binutils * readelf.c (get_segment_type): Handle PT_OPENBSD_MUTABLE segment type. include * elf/common.h (PT_OPENBSD_MUTABLE): Define.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 4c54030..a47cb0e 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -4640,6 +4640,7 @@ get_segment_type (Filedata * filedata, unsigned long p_type)
case PT_GNU_PROPERTY: return "GNU_PROPERTY";
case PT_GNU_SFRAME: return "GNU_SFRAME";
+ case PT_OPENBSD_MUTABLE: return "OPENBSD_MUTABLE";
case PT_OPENBSD_RANDOMIZE: return "OPENBSD_RANDOMIZE";
case PT_OPENBSD_WXNEEDED: return "OPENBSD_WXNEEDED";
case PT_OPENBSD_BOOTDATA: return "OPENBSD_BOOTDATA";