* emultempl/elf32.em (_after_open): Check for get_elf_backend_data
returning NULL.
This commit is contained in:
parent
736cba80b3
commit
c13526cafc
|
@ -1,3 +1,8 @@
|
|||
2010-08-20 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* emultempl/elf32.em (_after_open): Check for get_elf_backend_data
|
||||
returning NULL.
|
||||
|
||||
2010-08-19 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* ld.texinfo (Expression Section): Detail expression evaluation.
|
||||
|
|
|
@ -1134,6 +1134,9 @@ gld${EMULATION_NAME}_after_open (void)
|
|||
const struct elf_backend_data *bed;
|
||||
|
||||
bed = get_elf_backend_data (abfd);
|
||||
if (bed == NULL)
|
||||
s = NULL;
|
||||
else
|
||||
s = bfd_make_section_with_flags (abfd, ".eh_frame_hdr",
|
||||
bed->dynamic_sec_flags
|
||||
| SEC_READONLY);
|
||||
|
|
Loading…
Reference in New Issue