projects
/
binutils-gdb.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e397ea
)
PR 33474 SEGV in init_reloc_cookie
author
Alan Modra <amodra@gmail.com>
Mon, 24 Nov 2025 08:44:16 +0000
(19:14 +1030)
committer
Alan Modra <amodra@gmail.com>
Mon, 24 Nov 2025 21:20:17 +0000
(07:50 +1030)
This segfault is triggered by a tekhex input.
PR 33474
* elflink.c (bfd_elf_gc_sections): Don't try to parse .eh_frame
in non-ELF input files.
bfd/elflink.c
patch
|
blob
|
history
diff --git
a/bfd/elflink.c
b/bfd/elflink.c
index 60a0a0efd8843960f3d69881f68f44559d944c7a..ec34c8abcf780e7ad76ef5dc05632ae923bf13cc 100644
(file)
--- a/
bfd/elflink.c
+++ b/
bfd/elflink.c
@@
-14649,6
+14649,8
@@
bfd_elf_gc_sections (bfd *abfd, struct bfd_link_info *info)
asection *sec;
struct elf_reloc_cookie cookie;
+ if (bfd_get_flavour (sub) != bfd_target_elf_flavour)
+ continue;
sec = sub->sections;
if (sec == NULL || sec->sec_info_type == SEC_INFO_TYPE_JUST_SYMS)
continue;
This page took
0.084212 seconds
and
5
git commands to generate.