mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-18 14:53:32 +08:00
0616a28038
Also, don't check alignment on symbol from plugin dummy input. bfd/ PR ld/20276 * elflink.c (elf_link_add_object_symbols): Don't check alignment on symbol from plugin dummy input. ld/ PR ld/20276 * plugin.c (plugin_notice): Set non_ir_ref on common symbols. * testsuite/ld-plugin/lto.exp (lto_link_tests): Add test for PR ld/20276. (lto_run_tests): Likewise. * testsuite/ld-plugin/pass.out: New file. * testsuite/ld-plugin/pr20276a.c: Likewise. * testsuite/ld-plugin/pr20276b.c: Likewise.
13 lines
149 B
C
13 lines
149 B
C
#include <stdio.h>
|
|
|
|
int global_var;
|
|
extern void abort ();
|
|
|
|
int main(void)
|
|
{
|
|
if (global_var != 20)
|
|
abort ();
|
|
printf ("PASS\n");
|
|
return 0;
|
|
}
|