Find one .eh_frame section for --eh-frame-hdr.
2010-08-22 H.J. Lu <hongjiu.lu@intel.com> PR ld/11937 * emultempl/elf32.em (_after_open): Find one .eh_frame section for --eh-frame-hdr.
This commit is contained in:
parent
39334f3a47
commit
4440bb7785
|
@ -1,3 +1,9 @@
|
||||||
|
2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR ld/11937
|
||||||
|
* emultempl/elf32.em (_after_open): Find one .eh_frame section
|
||||||
|
for --eh-frame-hdr.
|
||||||
|
|
||||||
2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
|
2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR ld/11937
|
PR ld/11937
|
||||||
|
|
|
@ -1132,11 +1132,16 @@ gld${EMULATION_NAME}_after_open (void)
|
||||||
{
|
{
|
||||||
if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
|
if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
|
||||||
elfbfd = abfd;
|
elfbfd = abfd;
|
||||||
s = bfd_get_section_by_name (abfd, ".eh_frame");
|
if (!warn_eh_frame)
|
||||||
if (s && s->size > 8 && !bfd_is_abs_section (s->output_section))
|
{
|
||||||
warn_eh_frame = TRUE;
|
s = bfd_get_section_by_name (abfd, ".eh_frame");
|
||||||
if (elfbfd && warn_eh_frame)
|
warn_eh_frame
|
||||||
break;
|
= (s
|
||||||
|
&& s->size > 8
|
||||||
|
&& !bfd_is_abs_section (s->output_section));
|
||||||
|
}
|
||||||
|
if (elfbfd && warn_eh_frame)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (elfbfd)
|
if (elfbfd)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue