https://sourceware.org/bugzilla/show_bug.cgi?id=20273

            Bug ID: 20273
           Summary: ld ignores symbol table in llvm IR archive
           Product: binutils
           Version: 2.27 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

[hjl@gnu-6 pr20267]$ cat main.c 
int global_var;
extern void abort ();

int main(void)
{
  if (global_var != 20)
    abort ();
  return 0;
}
[hjl@gnu-6 pr20267]$ cat foo.c
int global_var = 20;
[hjl@gnu-6 pr20267]$ make
gcc -B./ -O2 -flto -c main.c -o main.o
gcc -B./ -O2 -flto -c foo.c -o foo.o
gcc-ar scr  libfoo.a foo.o
gcc -B./ -O2 -flto -o x main.o libfoo.a
./x
Makefile:21: recipe for target 'all' failed
make: *** [all] Aborted
rm foo.o
[hjl@gnu-6 pr20267]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to