From 385e5b9039d12d3c2ab25023e827ee9a681c1aad Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 30 Aug 2018 08:01:36 -0700 Subject: Treat SHT_FINI_ARRAY and SHT_PREINIT_ARRAY as relocatable sections Since SHT_FINI_ARRAY and SHT_PREINIT_ARRAY sections are relocatable, this patch fixes readelf and adds a testcase. binutils/ * readelf.c (process_section_headers): Treat SHT_FINI_ARRAY and SHT_PREINIT_ARRAY as relocatable sections. gas/ * testsuite/gas/elf/elf.exp: Run section14. * testsuite/gas/elf/section14.d: New file. * testsuite/gas/elf/section14.s: Likewise. --- binutils/ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'binutils/ChangeLog') diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 6b036db..a3d1354 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2018-08-30 H.J. Lu + + * readelf.c (process_section_headers): Treat SHT_FINI_ARRAY and + SHT_PREINIT_ARRAY as relocatable sections. + 2018-08-30 Chenghua Xu * MAINTAINERS: Add myself as a MIPS port maintainer. -- cgit v1.1