Unix/Linux is case sensitive:
.s Operation: Assembly
.S operation: cpp + assembly
eg:
/* start.s */
#define rTEXT 0x12345678
LDR R0,=rTEXT
....
# arm-linux-gcc -g -c -nostdlib start.s -o start.o
# nm -u start.o
rTEXT
# arm-linux-objdump -S -t start.o > start.l
# cat start.i | grep ''R0"
LDR R0,【PC,#0】
Classic mistake:
arm-linux-gcc mistakenly treats the .s file as a file processed by cpp (file type is not ignored), so it regards rTEXT as a label. When arm-linux-ld reports undefined reference ....
Just rename .s to .S!!
# mv start.s start.S
# .....
You can
Previous article:undefined reference to `__aeabi_uidivmod'、 `__aeabi_uidiv'
Next article:Wiring Analysis of S3C2440 and NOR FLASH (AM29LV160DB)
Recommended ReadingLatest update time:2024-11-16 11:40
- Popular Resources
- Popular amplifiers
- Radio Frequency Identification (RFID) System Technology and Application (Written by Ci Xinxin, Wang Subin, and Wang Shuo)
- Siemens PLC Programming Technology and Application Cases (Edited by Liu Zhenquan, Wang Hanzhi, Yang Kun, etc.)
- Siemens PLC from Beginner to Mastery with Color Illustrations (Yang Rui)
- Siemens PLC Project Tutorial
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Bicycle modification series——by dcexpert
- Question: Which channel do you use to purchase components for your company's products?
- New opportunity to counterattack! Come to EEWorld Download Center, complete tasks to earn 200 points, and easily achieve point freedom
- Participate to get gifts | Keysight Technologies offers tips on how to balance new technology requirements with test costs
- Xunwei-IMX6Q development-non-device tree uboot-modify default environment variables
- GigaDevice RISC-V's GD32VF103 development board and Chinese datasheet and examples
- The difference between serial port and parallel port LCD module
- This article teaches you how to solve PCB nickel plating process and failure
- Grateful to have you + relying on myself to make the impossible possible @【chat, laugh, make noise】
- [AT32WB415 Review] Part 1: Receive the board and build the environment