LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-12-2018, 02:43 AM   #1
javedalam
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, 05:33 AM   #2
wpeckham
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,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
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.
 
  


Reply



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 08:24 PM
[SOLVED] can't debug with gdb: not in executable format: File format not recognized (squeeze) oddiofile Debian 1 08-24-2010 03:21 AM
How do i create a .bin file for linux from my java source code ojerag Programming 4 01-04-2010 09:45 AM
[SOLVED] make use of gcc source code to parse c++ source file famsinyi Programming 14 10-19-2009 06:47 PM
Howto convert bin file to a executable DOS file lilzz Linux - Newbie 5 08-04-2006 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 09:33 AM.

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