]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR26489, ASAN: ppc64_elf_size_stubs elf64-ppc.c:13389
authorAlan Modra <amodra@gmail.com>
Mon, 24 Aug 2020 16:25:38 +0000 (01:55 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 28 Jan 2021 01:21:12 +0000 (11:51 +1030)
commite658f42c0fe7e84a0e1eedaea4b29a4e3a23840c
tree0a67e56219401cc4068185fc68ce4fbaf966a2b0
parent0004f3b30c717314abfb741758eb383ac43730ed
PR26489, ASAN: ppc64_elf_size_stubs elf64-ppc.c:13389

Stub sections are inserted after sec_info is sized, so have higher ids.
Test flags that will exclude stub sections before looking at the
sec_info array.

PR 26489
* elf64-ppc.c (ppc64_elf_size_stubs): Test code_sec->has_toc_reloc
and code_sec->makes_toc_func_call before sec_info[code_sec->id].

(cherry picked from commit 918dc783deadc206691dcc20bf8aa6c807c10244)
bfd/ChangeLog
bfd/elf64-ppc.c