How can i test MClinker?

35 views
Skip to first unread message

天霖張

unread,
Mar 1, 2014, 8:42:43 AM3/1/14
to mcli...@googlegroups.com
hi all

If i want test MClinker how can i do ??

I finished compie MClinker Andes.

My test step:
MClinker seem need bitcode??

1.  llvm-as HelloWorld.ll -o HelloWorld.bc
2.  ld.mcld -filetype=obj -relocation-model=pic -march=arm -o Helloo -dB HelloWorld.bc

BUT....i can't get any objcode??

Any can help me??

thx~~

天霖張

unread,
Mar 1, 2014, 8:46:07 AM3/1/14
to mcli...@googlegroups.com
And.....

How can i combine gcc and MClinker (replace GNU ld) ??

THX.....

天霖張於 2014年3月1日星期六UTC+8下午9時42分43秒寫道:

Pete Chou

unread,
Mar 1, 2014, 9:17:08 AM3/1/14
to 天霖張, mcli...@googlegroups.com
Hi,


On Sat, Mar 1, 2014 at 9:46 PM, 天霖張 <wayl...@gmail.com> wrote:
And.....

How can i combine gcc and MClinker (replace GNU ld) ??
Maybe try -B option provided by gcc/clang.


THX.....

天霖張於 2014年3月1日星期六UTC+8下午9時42分43秒寫道:
hi all

If i want test MClinker how can i do ??

I finished compie MClinker Andes.

My test step:
MClinker seem need bitcode??
It should be fine without bitcode. MCLinker can be used as a standalone linker.
 

1.  llvm-as HelloWorld.ll -o HelloWorld.bc
2.  ld.mcld -filetype=obj -relocation-model=pic -march=arm -o Helloo -dB HelloWorld.bc

BUT....i can't get any objcode??
Can you provide more information? any error message?
 

Any can help me??

thx~~

--
You received this message because you are subscribed to the Google Groups "MCLinker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mclinker+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

way

unread,
Mar 1, 2014, 9:56:15 AM3/1/14
to Pete Chou, mcli...@googlegroups.com
hi 

thx your response and i just test HelloWorld.ll (in ${MCLINKER}/test/Samples folder).

I don't get any error message and it create zero size output file (Helloo)


1.  llvm-as HelloWorld.ll -o HelloWorld.bc
2.  ld.mcld -filetype=obj -relocation-model=pic -march=arm -o Helloo -dB HelloWorld.bc

has another test method?

Pete Chou

unread,
Mar 3, 2014, 12:51:43 AM3/3/14
to way, mcli...@googlegroups.com
Hi,

Thanks for reporting this issue. Should be fixed now!

Thanks,
Pete
Reply all
Reply to author
Forward
0 new messages