[lld] r276398 - [ELF] Support PROVIDE and PROVIDE_HIDDEN inside SECTIONS

Eugene Leviant via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 25 10:33:00 PDT 2016


Fixed in r276659

Thanks for pointing it.
Eugene

2016-07-25 18:02 GMT+03:00 Rafael EspĂ­ndola <rafael.espindola at gmail.com>:

> > +# Provide existing symbol. The value should be 0, even though we
> > +# have value of 1 in PROVIDE()
> > +# RUN: echo "SECTIONS { PROVIDE(somesym = 1);}" > %t.script
> > +# RUN: ld.lld -o %t1 --script %t.script %t
> > +# RUN: llvm-objdump -t %t1 | FileCheck --check-prefix=PROVIDE2 %s
> > +# PROVIDE2: 0000000000000000         *ABS*    00000000 somesym
> > +
> > +# Provide existing symbol. The value should be 0, even though we
> > +# have value of 1 in PROVIDE(). Visibility should not change
> > +# RUN: echo "SECTIONS { PROVIDE(somesym = 1);}" > %t.script
> > +# RUN: ld.lld -o %t1 --script %t.script %t
> > +# RUN: llvm-objdump -t %t1 | FileCheck --check-prefix=HIDDEN2 %s
> > +# HIDDEN2: 0000000000000000         *ABS*    00000000 somesym
>
> Was the intention to use PROVIDE_HIDDEN in the last test?
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160725/3cfa5ddb/attachment.html>


More information about the llvm-commits mailing list