From 4d74727a4a41e811950dcd0bed7bc6747a068886 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 9 Jan 2017 12:08:00 +1030 Subject: [PATCH] .rela.dyn comment fix and add missing ChangeLog entry ChangeLog entry missed from commit dd90581873. * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn comment. --- binutils/ChangeLog | 5 +++++ binutils/ChangeLog-2016 | 3 +++ binutils/readelf.c | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index e5f2e0ff2a6..b5e82fed645 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2017-01-09 Alan Modra + + * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn + comment. + 2017-01-06 Nick Clifton * MAINTAINERS: Move Paul Brook to the Past Maintainers section. diff --git a/binutils/ChangeLog-2016 b/binutils/ChangeLog-2016 index 423a9022d79..49cdc50e53c 100644 --- a/binutils/ChangeLog-2016 +++ b/binutils/ChangeLog-2016 @@ -330,6 +330,9 @@ 2016-08-19 Nick Clifton + * readelf.c (process_section_headers): Sanity check section headers. + (process_symbol_table): Don't warn on solaris binaries with local + symbols past symtab sh_info. * testsuite/binutils-all/readelf.s: Adjust expected ordering of sections. * testsuite/binutils-all/readelf.s-64: Likewise. diff --git a/binutils/readelf.c b/binutils/readelf.c index 1eaa505ebf9..b4887143afe 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -6092,8 +6092,8 @@ process_section_headers (FILE * file) && (streq (SECTION_NAME (section), ".rel.dyn") || streq (SECTION_NAME (section), ".rela.dyn"))) /* The .rel.dyn and .rela.dyn sections have an sh_info field - of zero. No idea why. I would have expected the index - of the .plt section. */ + of zero. The relocations in these sections may apply + to many different sections. */ ; else warn (_("[%2u]: Info field (%u) should index a relocatable section.\n"), -- 2.30.2