berkus / mclinker

Automatically exported from code.google.com/p/mclinker
Other
0 stars 0 forks source link

Archive reader fails #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce the problem
1. tar zxvf ./ArchiveReader.tar.gz
2. make

clang++ -S -emit-llvm -I. ./xx.cpp -o xx.ll
llvm-mcld -mtriple=arm-none-linux-gnueabi -relocation-model=pic -filetype=obj 
-dB ./xx.ll -o ./xx.o
llvm-mcld -mtriple=arm-none-linux-gnueabi -filetype=dso ./testee_a_b.a ./xx.o 
-o ./xx.so -t
WARNING: can not open search directory: `-L=/system/lib'.
** name type    path    size (2)
0 *  ./testee_a_b.a archive (./testee_a_b.a)
1 *  ./xx.o object  (./xx.o)
time 
LLVM ERROR: header name format error
make: *** [all] Error 1

Original issue reported on code.google.com by LubaTang on 27 Mar 2012 at 9:00

Attachments:

GoogleCodeExporter commented 9 years ago
The new ArchiveReader

Original comment by LubaTang on 27 Mar 2012 at 9:12

Attachments:

GoogleCodeExporter commented 9 years ago
It is because the lack of archive symbol table.
Solved by below.
   ar s testee_a_b.a

It will generate archive symbol table for file testee_a_b.a.

Original comment by PinRon...@gmail.com on 30 Mar 2012 at 11:17

GoogleCodeExporter commented 9 years ago

Original comment by PinRon...@gmail.com on 30 Mar 2012 at 11:18

GoogleCodeExporter commented 9 years ago
Archive reader is supported and the function is verified.

Original comment by pete.c...@gmail.com on 5 Oct 2012 at 3:03