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++; |