View | Details | Raw Unified | Return to bug 19405
Collapse All | Expand All

(-)a/bfd/elf-eh-frame.c (-3 / +14 lines)
Lines 1369-1382 _bfd_elf_discard_section_eh_frame Link Here
1369
		     && ent->make_relative == 0)
1369
		     && ent->make_relative == 0)
1370
		    || (ent->fde_encoding & 0x70) == DW_EH_PE_aligned))
1370
		    || (ent->fde_encoding & 0x70) == DW_EH_PE_aligned))
1371
	      {
1371
	      {
1372
		static int num_warnings_issued = 0;
1372
		/* If a shared library uses absolute pointers
1373
		/* If a shared library uses absolute pointers
1373
		   which we cannot turn into PC relative,
1374
		   which we cannot turn into PC relative,
1374
		   don't create the binary search table,
1375
		   don't create the binary search table,
1375
		   since it is affected by runtime relocations.  */
1376
		   since it is affected by runtime relocations.  */
1376
		hdr_info->u.dwarf.table = FALSE;
1377
		hdr_info->u.dwarf.table = FALSE;
1377
		(*info->callbacks->einfo)
1378
		if (num_warnings_issued < 10)
1378
		  (_("%P: FDE encoding in %B(%A) prevents .eh_frame_hdr"
1379
		  {
1379
		     " table being created.\n"), abfd, sec);
1380
		    (*info->callbacks->einfo)
1381
		      (_("%P: FDE encoding in %B(%A) prevents .eh_frame_hdr"
1382
			 " table being created.\n"), abfd, sec);
1383
		    num_warnings_issued ++;
1384
		  }
1385
		else if (num_warnings_issued == 10)
1386
		  {
1387
		    (*info->callbacks->einfo)
1388
		      (_("%P: Further warnings about FDE encoding preventing .eh_frame_hdr generation dropped.\n"));
1389
		    num_warnings_issued ++;
1390
		  }
1380
	      }
1391
	      }
1381
	    ent->removed = 0;
1392
	    ent->removed = 0;
1382
	    hdr_info->u.dwarf.fde_count++;
1393
	    hdr_info->u.dwarf.fde_count++;
(-)a/bfd/elf32-nios2.c (-2 / +2 lines)
Lines 1905-1912 nios2_elf32_install_imm16 (asection *sec, bfd_vma offset, bfd_vma value) Link Here
1905
{
1905
{
1906
  bfd_vma word = bfd_get_32 (sec->owner, sec->contents + offset);
1906
  bfd_vma word = bfd_get_32 (sec->owner, sec->contents + offset);
1907
1907
1908
  BFD_ASSERT(value <= 0xffff);
1908
  BFD_ASSERT (value <= 0xffff || ((bfd_signed_vma) value) >= -0xffff);
1909
1909
  
1910
  bfd_put_32 (sec->owner, word | ((value & 0xffff) << 6),
1910
  bfd_put_32 (sec->owner, word | ((value & 0xffff) << 6),
1911
	      sec->contents + offset);
1911
	      sec->contents + offset);
1912
}
1912
}

Return to bug 19405