[llvm-bugs] [Bug 34019] New: missing FILE symbol for .(s|S) files
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 1 05:35:59 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34019
Bug ID: 34019
Summary: missing FILE symbol for .(s|S) files
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: robert at openbsd.org
CC: llvm-bugs at lists.llvm.org
Hello
When compiling .(s|S) files with clang, a FILE symbol is missing from the
object
file, unless explicitly setting one with the .file directive. Not using the
integrated as, also fixes the issue:
$ clang -g bzero.S a.c && readelf -Ws a.out | grep FILE
33: 0000000000000000 0 FILE LOCAL DEFAULT ABS a.c
$ clang -no-integrated-as -g bzero.S a.c && readelf -Ws a.out | grep FILE
31: 0000000000000000 0 FILE LOCAL DEFAULT ABS bzero.S
33: 0000000000000000 0 FILE LOCAL DEFAULT ABS a.c
$ gcc -g bzero.S a.c && readelf -Ws a.out | grep FILE
31: 0000000000000000 0 FILE LOCAL DEFAULT ABS bzero.S
33: 0000000000000000 0 FILE LOCAL DEFAULT ABS a.c
This seems like a bug and the FILE symbol should be added with the integrated
as as well.
Thank you!
--
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/20170801/9da97ab1/attachment.html>
More information about the llvm-bugs
mailing list