Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 10-12-2018, 03:43 AM   #1
LQ Newbie
Registered: Oct 2018
Posts: 1

Rep: Reputation: Disabled
on gcc compiler, i have a source code which has obect file i.e., .o file already generated need to generate executable in .bin format help.

i have following error while generating the executables.
/usr/bin/ld: a9gprs.o: Relocations in generic ELF (EM: 40)
a9gprs.o: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
and i have following content in my obj folder.
a9gprs.o cpu_comp.o gpio.o modbus.o stm32f0xx_exti.o stm32f0xx_misc.o stm32f0xx_spi.o stm32f0xx_wwdg.o uart.o
assert.o cpu.o hooks.o startup_stm32f0xx.o stm32f0xx_flash.o stm32f0xx_pwr.o stm32f0xx_syscfg.o syscalls.o
boot.o delay.o led.o stm32f0xx_dbgmcu.o stm32f0xx_gpio.o stm32f0xx_rcc.o stm32f0xx_tim.o system_stm32f0xx.o
com.o _exit.o main.o stm32f0xx_dma.o stm32f0xx_i2c.o stm32f0xx_rtc.o stm32f0xx_usart.o timer.o
please tell me the command to execute them.
Old 10-12-2018, 06:33 AM   #2
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,160

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
Execute what?

From the message, it appears that you have a faulty .o file and need to check your source code for that item and recompile after fixing things, but that is just a first guess based on the error message. What we KNOW from that message is that the .o file is not correct.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a usable .bin file from source code? friendlybear Linux - General 5 08-27-2012 09:24 PM
[SOLVED] can't debug with gdb: not in executable format: File format not recognized (squeeze) oddiofile Debian 1 08-24-2010 04:21 AM
How do i create a .bin file for linux from my java source code ojerag Programming 4 01-04-2010 10:45 AM
[SOLVED] make use of gcc source code to parse c++ source file famsinyi Programming 14 10-19-2009 07:47 PM
Howto convert bin file to a executable DOS file lilzz Linux - Newbie 5 08-04-2006 01:03 AM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 03:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration