Browse Source
Set non_ir_ref_regular to TRUE for symbols forced into the output file so that they won't be removed by garbage collection with LTO. PR ld/23309 * ldlang.c (insert_undefined): Set non_ir_ref_regular to TRUE. * plugin.c (is_visible_from_outside): Don't scan entry_symbol. * testsuite/ld-plugin/pr23309.c: New file. * testsuite/ld-plugin/pr23309.d: Likewise.gdb-8.2-branch
6 changed files with 26 additions and 7 deletions
@ -0,0 +1,10 @@ |
|||
int |
|||
main (void) |
|||
{ |
|||
return 0; |
|||
} |
|||
|
|||
void |
|||
KeepMe (void) |
|||
{ |
|||
} |
|||
@ -0,0 +1,3 @@ |
|||
#... |
|||
[0-9a-f]+ . _?KeepMe |
|||
#pass |
|||
Loading…
Reference in new issue