* 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>
|
2010-08-19 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* ld.texinfo (Expression Section): Detail expression evaluation.
|
* ld.texinfo (Expression Section): Detail expression evaluation.
|
||||||
|
|
|
@ -1134,9 +1134,12 @@ gld${EMULATION_NAME}_after_open (void)
|
||||||
const struct elf_backend_data *bed;
|
const struct elf_backend_data *bed;
|
||||||
|
|
||||||
bed = get_elf_backend_data (abfd);
|
bed = get_elf_backend_data (abfd);
|
||||||
s = bfd_make_section_with_flags (abfd, ".eh_frame_hdr",
|
if (bed == NULL)
|
||||||
bed->dynamic_sec_flags
|
s = NULL;
|
||||||
| SEC_READONLY);
|
else
|
||||||
|
s = bfd_make_section_with_flags (abfd, ".eh_frame_hdr",
|
||||||
|
bed->dynamic_sec_flags
|
||||||
|
| SEC_READONLY);
|
||||||
if (s != NULL
|
if (s != NULL
|
||||||
&& bfd_set_section_alignment (abfd, s, 2))
|
&& bfd_set_section_alignment (abfd, s, 2))
|
||||||
htab->eh_info.hdr_sec = s;
|
htab->eh_info.hdr_sec = s;
|
||||||
|
|
Loading…
Reference in New Issue