[PATCH] Treat SHT_FINI_ARRAY and SHT_PREINIT_ARRAY as relocatable sections
H.J. Lu
hjl.tools@gmail.com
Thu Aug 30 15:01:00 GMT 2018
More information about the Binutils mailing list
Thu Aug 30 15:01:00 GMT 2018
- Previous message (by thread): [PATCH] Treat SHT_FINI_ARRAY and SHT_PREINIT_ARRAY as relocatable sections
- Next message (by thread): [PATCH] Skip elf/section14 test for h8300 targets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Aug 30, 2018 at 6:45 AM, H.J. Lu <hjl.tools@gmail.com> wrote: > SHT_FINI_ARRAY and SHT_PREINIT_ARRAY sections are relocatable. > > * readelf.c (process_section_headers): Treat SHT_FINI_ARRAY and > SHT_PREINIT_ARRAY as relocatable sections. > --- > binutils/readelf.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/binutils/readelf.c b/binutils/readelf.c > index 194f1c3e0c..9c675ddf1e 100644 > --- a/binutils/readelf.c > +++ b/binutils/readelf.c > @@ -6359,6 +6359,8 @@ process_section_headers (Filedata * filedata) > && filedata->section_headers[section->sh_info].sh_type != SHT_NOBITS > && filedata->section_headers[section->sh_info].sh_type != SHT_NOTE > && filedata->section_headers[section->sh_info].sh_type != SHT_INIT_ARRAY > + && filedata->section_headers[section->sh_info].sh_type != SHT_FINI_ARRAY > + && filedata->section_headers[section->sh_info].sh_type != SHT_PREINIT_ARRAY > /* FIXME: Are other section types valid ? */ > && filedata->section_headers[section->sh_info].sh_type < SHT_LOOS)) > { > -- > 2.17.1 > I am checking in this patch. -- H.J. -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Treat-SHT_FINI_ARRAY-and-SHT_PREINIT_ARRAY-as-reloca.patch Type: text/x-patch Size: 3153 bytes Desc: not available URL: <https://sourceware.org/pipermail/binutils/attachments/20180830/0da06c60/attachment.bin>
- Previous message (by thread): [PATCH] Treat SHT_FINI_ARRAY and SHT_PREINIT_ARRAY as relocatable sections
- Next message (by thread): [PATCH] Skip elf/section14 test for h8300 targets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list