mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 03:42:22 +08:00
* emultempl/elf32.em (_after_open): Check for get_elf_backend_data
returning NULL.
This commit is contained in:
@ -1134,9 +1134,12 @@ gld${EMULATION_NAME}_after_open (void)
|
||||
const struct elf_backend_data *bed;
|
||||
|
||||
bed = get_elf_backend_data (abfd);
|
||||
s = bfd_make_section_with_flags (abfd, ".eh_frame_hdr",
|
||||
bed->dynamic_sec_flags
|
||||
| SEC_READONLY);
|
||||
if (bed == NULL)
|
||||
s = NULL;
|
||||
else
|
||||
s = bfd_make_section_with_flags (abfd, ".eh_frame_hdr",
|
||||
bed->dynamic_sec_flags
|
||||
| SEC_READONLY);
|
||||
if (s != NULL
|
||||
&& bfd_set_section_alignment (abfd, s, 2))
|
||||
htab->eh_info.hdr_sec = s;
|
||||
|
Reference in New Issue
Block a user