[PATCH] [ELF] Add --allow-multiple-definition option.

Rui Ueyama ruiu at google.com
Fri Mar 28 09:27:25 PDT 2014


Thanks. Modified not to print out warning messages if the option is given.


On Fri, Mar 28, 2014 at 8:50 AM, Shankar Kalpathi Easwaran <
shankarke at gmail.com> wrote:

>
>   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.
>
>   Testcase with Gnu :-
>
>   cat > 1.c << \!
>   int foo = 10;
>   !
>   + cat
>
>   cat > 2.c << \!
>   int foo = 10;
>   !
>   + cat
>
>   gcc -c 1.c 2.c
>   + gcc -c 1.c 2.c
>   ld 1.o 2.o --allow-multiple-definition
>   + ld 1.o 2.o --allow-multiple-definition
>   ld: warning: cannot find entry symbol _start; defaulting to
> 00000000004000b0
>
> http://llvm-reviews.chandlerc.com/D3211
>
> BRANCH
>   allow-multiple-definition
>
> ARCANIST PROJECT
>   lld
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140328/c736c029/attachment.html>


More information about the llvm-commits mailing list