diff options
author | Nick Clifton <nickc@redhat.com> | 2016-02-10 11:25:59 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-02-10 11:25:59 +0000 |
commit | 83da6e748c8f105f07e17f53aa6b99ed7867ff5f (patch) | |
tree | 32c3444b907e33d0a44d143ed52a7908bceadc42 /bfd/elf-eh-frame.c | |
parent | 52cf9762c53f5de7070a3951a3a6156082839d35 (diff) | |
download | gdb-83da6e748c8f105f07e17f53aa6b99ed7867ff5f.zip gdb-83da6e748c8f105f07e17f53aa6b99ed7867ff5f.tar.gz gdb-83da6e748c8f105f07e17f53aa6b99ed7867ff5f.tar.bz2 |
Correct assertion in NIOS2 linker to allow signed 16-buit immediate values.
PR 19405
* elf32-nios2.c (nios2_elf32_install_imm16): Allow for signed
immediate values.
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Limit the
number of messages about FDE encoding preventing .eh_frame_hdr
generation.
Diffstat (limited to 'bfd/elf-eh-frame.c')
-rw-r--r-- | bfd/elf-eh-frame.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c index 0500cd3..e787ee9 100644 --- a/bfd/elf-eh-frame.c +++ b/bfd/elf-eh-frame.c @@ -1369,14 +1369,26 @@ _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++; |