https://llvm.org/bugs/show_bug.cgi?id=30830

            Bug ID: 30830
           Summary: LLD linker script test failure on AArch64
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedb...@nondot.org
          Reporter: renato.go...@linaro.org
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

It seems LLD is calculating offsets wrong in AArch64:

ELF/linkerscript/locationcounter.s

# RUN:  . = 0x30000 + (1 + 1023 >> 2); \                                        
# RUN:  .shiftr : { *(.shiftr) }

...

test/ELF/linkerscript/locationcounter.s:74:10: error: expected string not found
in input
# CHECK: .shiftr {{.*}} 0000000000030100
         ^
<stdin>:26:39: note: scanning from here
 20 .shiftl 00000008 0000000000030040 DATA 
                                      ^
<stdin>:27:3: note: possible intended match here
 21 .shiftr 00000008 0000000000030400 DATA 
  ^

It should not be 0x30400, but the expected 0x30100

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to