[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/18581] New: (ARM): issue with function names with a dash inside
From: |
adrien at guinet dot me |
Subject: |
[Bug gas/18581] New: (ARM): issue with function names with a dash inside |
Date: |
Tue, 23 Jun 2015 08:28:24 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=18581
Bug ID: 18581
Summary: (ARM): issue with function names with a dash inside
Product: binutils
Version: 2.25
Status: NEW
Severity: normal
Priority: P2
Component: gas
Assignee: unassigned at sourceware dot org
Reporter: adrien at guinet dot me
Target Milestone: 2.25
Created attachment 8384
--> https://sourceware.org/bugzilla/attachment.cgi?id=8384&action=edit
failing test case
here is an issue when assembling an ARM assembly file which has one or multiple
functions which have a dash in their name.
For instance, the file bug-arm.s in the attached archive contains a "test-a"
function, and fails to assemble use GNU as:
I've used binutils-arm-linux-gnueabi debian package that includes binutils
2.25. The ARM toolchain from the android NDK has the same issue (binutils
2.24.90, see https://code.google.com/p/android/issues/detail?id=177830 for the
original issue from which this one is derived).
$ arm-linux-gnueabi-as bug-arm.s -o bug-arm.o
bug-arm.s: Assembler messages:
bug-arm.s:23: Error: Missing symbol name in directive
bug-arm.s:23: Error: unrecognized symbol type "test"
bug-arm.s:23: Error: junk at end of line, first unrecognized character is `-'
bug-arm.s:26: Error: junk at end of line, first unrecognized character is `"'
bug-arm.s:39: Error: expected comma after name `' in .size directive
bug-arm.s:62: Error: bad expression -- `bl "test-a"(PLT)'
If "test-a" is replaced by "test_a" (cf. the file work-arm.s), then GNU as
manages to correctly assemble the object.
Note: even if the C language forbids dash in function names, some compilers
like LLVM can create functions with dash inside their name after some
optimisations.
Note bis: this works fines with the x86 GNU AS from binutils 2.25 (you can try
with the file bug-x86.s).
Thanks for any help/feedbacks/thoughts about this issue!
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gas/18581] New: (ARM): issue with function names with a dash inside,
adrien at guinet dot me <=