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>
Mon, 24 Aug 2020 16:42:35 +0000 (02:12 +0930)
commit918dc783deadc206691dcc20bf8aa6c807c10244
tree3bd5c7ff591a97be6d9dbc79972e1ad408bfc71f
parent573eb292ee79dc78207cedadaa8acbb1922ab699
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].
bfd/ChangeLog
bfd/elf64-ppc.c