diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-02-02 05:14:48 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-02-02 05:15:05 -0800 |
commit | 5424d7ed94cf5a7ca24636ab9f4e6d5c353fc0d3 (patch) | |
tree | 6ea1db24d290d5fc0360d1845274f20ae800a557 /binutils/readelf.c | |
parent | 9918bff7cf2a566aaa2036d2242a61c140652dc7 (diff) | |
download | gdb-5424d7ed94cf5a7ca24636ab9f4e6d5c353fc0d3.zip gdb-5424d7ed94cf5a7ca24636ab9f4e6d5c353fc0d3.tar.gz gdb-5424d7ed94cf5a7ca24636ab9f4e6d5c353fc0d3.tar.bz2 |
readelf: Add 'R' and 'D' to "Key to Flags:"
Add "R (retain)" and "D (mbind)" to "Key to Flags:".
PR binutils/27281
* readelf.c (process_section_headers): Add 'R' and 'D' to
"Key to Flags:".
* testsuite/binutils-all/retain1a.d: Updated.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 5df5108..c61219a 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -6992,6 +6992,18 @@ process_section_headers (Filedata * filedata) W (write), A (alloc), X (execute), M (merge), S (strings), I (info),\n\ L (link order), O (extra OS processing required), G (group), T (TLS),\n\ C (compressed), x (unknown), o (OS specific), E (exclude),\n ")); + switch (filedata->file_header.e_ident[EI_OSABI]) + { + case ELFOSABI_GNU: + case ELFOSABI_FREEBSD: + printf (_("R (retain), ")); + /* Fall through */ + case ELFOSABI_NONE: + printf (_("D (mbind), ")); + break; + default: + break; + } if (filedata->file_header.e_machine == EM_X86_64 || filedata->file_header.e_machine == EM_L1OM || filedata->file_header.e_machine == EM_K1OM) |