[llvm-bugs] [Bug 25798] New: lld x86_64 emitting bogus .bss alignment

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 10 11:20:05 PST 2015


            Bug ID: 25798
           Summary: lld x86_64 emitting bogus .bss alignment
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: emaste at freebsd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

When using LLD as the FreeBSD system linker I see strange alignment values for
.bss - e.g.

ref11-amd64% readelf -S sh
There are 29 section headers, starting at offset 0x3a990:

Section Headers:
  [Nr] Name              Type             Address           Offset
       Size              EntSize          Flags  Link  Info  Align
  [24] .bss              NOBITS           0000000000044668  00034678
       0000000000002590  0000000000000000  WA       0     0     56

This was obtained by building FreeBSD 11.x /bin/sh via:

cd bin/sh
CFLAGS="-v -B/scratch/tmp/emaste/llvm/build/bin/ -L/lib -fuse-ld=lld" make

I will try to find a simple reproducer.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151210/1af6c7be/attachment.html>

More information about the llvm-bugs mailing list