<div dir="ltr">Thanks. Modified not to print out warning messages if the option is given.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 28, 2014 at 8:50 AM, Shankar Kalpathi Easwaran <span dir="ltr"><<a href="mailto:shankarke@gmail.com" target="_blank">shankarke@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
actually infact, there is no warning even shown with gnu, you might want the errors that is displayed to the user when there is a multiple definition.<br>
<br>
Testcase with Gnu :-<br>
<br>
cat > 1.c << \!<br>
int foo = 10;<br>
!<br>
+ cat<br>
<br>
cat > 2.c << \!<br>
int foo = 10;<br>
!<br>
+ cat<br>
<br>
gcc -c 1.c 2.c<br>
+ gcc -c 1.c 2.c<br>
ld 1.o 2.o --allow-multiple-definition<br>
+ ld 1.o 2.o --allow-multiple-definition<br>
ld: warning: cannot find entry symbol _start; defaulting to 00000000004000b0<br>
<div class="HOEnZb"><div class="h5"><br>
<a href="http://llvm-reviews.chandlerc.com/D3211" target="_blank">http://llvm-reviews.chandlerc.com/D3211</a><br>
<br>
BRANCH<br>
allow-multiple-definition<br>
<br>
ARCANIST PROJECT<br>
lld<br>
</div></div></blockquote></div><br></div>