Comments (5)
I tried this test on fedora and get:
[galak@spiff zephyr]$ objdump -d test.o
test.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <.text>:
0: b8 00 00 00 00 mov $0x0,%eax
from sdk-ng.
@galak Sorry, there was a formatting error in the description, which left off the X=(512/4)
bit (which is crucial).
from sdk-ng.
@gnuless the 2.32 you built from source, what config options did you give it?
from sdk-ng.
the 2.32 you built from source, what config options did you give it?
Oh, just very vanilla. ./configure --prefix=/home/charles/binutils-test
or similar. On an Ubuntu 18.04.3 x86_64 system, then make install
and test.
from sdk-ng.
Seems like binutils treats slashes as start of a comment on i386, from: https://sourceware.org/binutils/docs-2.33.1/as/i386_002dChars.html#i386_002dChars
If the --divide command-line option has not been specified then the ‘/’ character appearing anywhere on a line also introduces a line comment.
Adding --divide
to x86_64-zephyr-elf-as
fixes the error. Running objdump with the resulting object file shows the same output.
This is due to the #define SVR4_COMMENT_CHARS
and i386_comment_chars
variable in gas/config/tc-i386.c
(line 440). According to the #if
, forward slash is considered the beginning of a comment when the target is not a Linux base system (among others). Therefore, locally compiled version, as it is targeting a Linux system, would not consider forward slash as the start of a comment. So this is intended behavior of binutils.
from sdk-ng.
Related Issues (20)
- arc binutils generates incorrect thread local storage (TLS) offsets HOT 11
- qemu-system-arc has bugs in delay-slot handling that are fixed upstream HOT 1
- Illegal load of EXC_RETURN into PC issue while using spi and ble in NRF52840DK HOT 1
- Thread awareness is not available on QEMU targets HOT 1
- runpath not set for libusb.so HOT 2
- arc soft float multiply error HOT 3
- Picolibc printf options in SDK 'integer only' variant?
- picolibc: Soft-float math functions access the FPU on SPARC HOT 3
- GitHub release info for 0.16.3 mentions wrong version of picolibc HOT 1
- Releases page does not have links to the full version HOT 1
- "Bus fault on vector table read" using SDK versions later than 0.16.0-beta1
- Upgrade to QEMU 8.1
- does SDK support riscv vector extension HOT 1
- maintainability: properly document the build process HOT 13
- Individual toolchain installation should be ignored for full_sdk HOT 1
- `setup.sh` cannot find applications on PATH HOT 2
- [GDB] Debugger seems to crash when stepping inside an IRQ handler HOT 4
- Broken links in Zephyr SDK 0.16.5-rc1release page HOT 1
- Update Zephyr SDK to be based upon GCC 14 HOT 7
- pokysdk provides an older Verison of GLIBC than required by system HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk-ng.