[lld] r277680 - Make filler expression compatible with gold.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 4 13:51:40 PDT 2016
On Thu, Aug 4, 2016 at 1:45 PM, Rafael EspĂndola <rafael.espindola at gmail.com
> wrote:
> On 4 August 2016 at 16:18, Rui Ueyama <ruiu at google.com> wrote:
> > My observation is different; gold handles numbers starting with 0x as a
> > binary of arbitrary size in hexstring. How did you test it?
>
>
> With an assembly file with just
>
> .align 16
> .long 42
>
> a linker script with
>
> SECTIONS
> {
> .text : {*(.text) } = 0xa
> }
>
> and linking with
>
> ld.gold -T test.script test.o test.o -shared -o test.gold
>
> I get a file with a .text section that looks like
>
> 0x000000d0 2a000000 0000000a 0000000a 0000000a *...............
> 0x000000e0 2a000000
>
Ah, right. I was accidentally using ld.bfd. Confirmed that gold handles
hexstrings as 32-bit values. We probably should do the same.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160804/1acd9709/attachment.html>
More information about the llvm-commits
mailing list