From: Alan Modra Date: Mon, 8 Dec 2025 09:14:35 +0000 (+1030) Subject: Re: Add warning message to readelf for local symbols X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f70242a98f91b7f5ec5b375346d8bfa7f9a61c4a;p=thirdparty%2Fbinutils-gdb.git Re: Add warning message to readelf for local symbols Limit the warning to ET_REL. --- diff --git a/binutils/readelf.c b/binutils/readelf.c index 9e89a54174e..5c1d05a8ba3 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -14821,6 +14821,7 @@ print_symbol (Filedata * filedata, && ! is_special && is_valid && psym->st_shndx < filedata->file_header.e_shnum + && filedata->file_header.e_type == ET_REL && filedata->section_headers != NULL && (filedata->section_headers[psym->st_shndx].sh_flags & SHF_MERGE) && psym->st_value > filedata->section_headers[psym->st_shndx].sh_size