[Bug 209917] Old gas creates a symbol pointing to symtab

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jun 1 01:31:06 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209917

            Bug ID: 209917
           Summary: Old gas creates a symbol pointing to symtab
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: gnu
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: rafael.espindola at gmail.com
                CC: davide at FreeBSD.org, emaste at freebsd.org,
                    jhb at FreeBSD.org, kib at FreeBSD.org

Given

        foo  = 0
        foo  = foo + 256

the gas in freebsd produces

[ 5] .symtab           SYMTAB          0000000000000000 000230 000078 18      6
  5  8
...
 4: 0000000000000100     0 NOTYPE  LOCAL  DEFAULT    5 foo

note that the symbol foo shows up in section .symtab. That causes a link error
with lld since it has no idea what to do with it.

The bug was fixed in gas in 8424d8f538ffb17bf5e61ac73137f86e47bc8952. llvm-mc
works too.

The testcase is reduced from ./sys/crypto/skein/amd64/skein_block_asm.s

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list