Sourceware Bugzilla – Attachment 8912 Details for
Bug 19405
nios2 binutils assertion fail at elf32-nios2.c:1038
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix assertion, reduce number of messages about FDE encoding
nios2.patch (text/plain), 1.67 KB, created by
Nick Clifton
on 2016-01-19 16:26:17 UTC
(
hide
)
Description:
Fix assertion, reduce number of messages about FDE encoding
Filename:
MIME Type:
Creator:
Nick Clifton
Created:
2016-01-19 16:26:17 UTC
Size:
1.67 KB
patch
obsolete
>diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c >index 0500cd3..44821e9 100644 >--- a/bfd/elf-eh-frame.c >+++ b/bfd/elf-eh-frame.c >@@ -1369,14 +1369,25 @@ _bfd_elf_discard_section_eh_frame > && ent->make_relative == 0) > || (ent->fde_encoding & 0x70) == DW_EH_PE_aligned)) > { >+ static int num_warnings_issued = 0; > /* If a shared library uses absolute pointers > which we cannot turn into PC relative, > don't create the binary search table, > since it is affected by runtime relocations. */ > hdr_info->u.dwarf.table = FALSE; >- (*info->callbacks->einfo) >- (_("%P: FDE encoding in %B(%A) prevents .eh_frame_hdr" >- " table being created.\n"), abfd, sec); >+ if (num_warnings_issued < 10) >+ { >+ (*info->callbacks->einfo) >+ (_("%P: FDE encoding in %B(%A) prevents .eh_frame_hdr" >+ " table being created.\n"), abfd, sec); >+ num_warnings_issued ++; >+ } >+ else if (num_warnings_issued == 10) >+ { >+ (*info->callbacks->einfo) >+ (_("%P: Further warnings about FDE encoding preventing .eh_frame_hdr generation dropped.\n")); >+ num_warnings_issued ++; >+ } > } > ent->removed = 0; > hdr_info->u.dwarf.fde_count++; >diff --git a/bfd/elf32-nios2.c b/bfd/elf32-nios2.c >index 3f72b11..d5c785c 100644 >--- a/bfd/elf32-nios2.c >+++ b/bfd/elf32-nios2.c >@@ -1905,8 +1905,8 @@ nios2_elf32_install_imm16 (asection *sec, bfd_vma offset, bfd_vma value) > { > bfd_vma word = bfd_get_32 (sec->owner, sec->contents + offset); > >- BFD_ASSERT(value <= 0xffff); >- >+ BFD_ASSERT (value <= 0xffff || ((bfd_signed_vma) value) >= -0xffff); >+ > bfd_put_32 (sec->owner, word | ((value & 0xffff) << 6), > sec->contents + offset); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19405
: 8912