]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
readelf: Report if no GOT section found
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 1 Sep 2025 18:00:43 +0000 (11:00 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 2 Sep 2025 15:29:26 +0000 (08:29 -0700)
commiteae0da7eb450546da6551a625aa3a5c6328c1c9f
tree52de9141e917d17c4fed04cbcaa2973b095d4204
parenteb3e0ff4f191ecc43579233df43295c648ce918e
readelf: Report if no GOT section found

Update "readelf --got-contents" to report if no GOT section found.

* readelf.c (process_got_section_contents): Report if no GOT
section found.
* testsuite/binutils-all/readelf-got.d: New file.
* testsuite/binutils-all/readelf.exp: Run readelf-got.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
binutils/readelf.c
binutils/testsuite/binutils-all/readelf-got.d [new file with mode: 0644]
binutils/testsuite/binutils-all/readelf.exp