inside lpc2106-rom.ld.
That helped me to pass over some gcc error that saying that the build-id should be specified
/usr/lib/gcc-cross/arm-linux-gnueabi/7/../../../../arm-linux-gnueabi/bin/ld: error: no memory region specified for loadable section `.note.gnu.build-id'
After that, unfortunatly, I’m receiving the following error:
arm-linux-gnueabi-gcc -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wl,–strip-all -D RUNFROMROM -D GCCARM7 -I. -I../../Source/include -I../Common/include -mcpu=arm7tdmi -Tlpc2106-rom.ld -O3 -fomit-frame-pointer -fno-strict-aliasing -fno-dwarf2-cfi-asm ../../Source/portable/GCC/ARM7LPC2000/portISR.o serial/serialISR.o main.o serial/serial.o ParTest/ParTest.o ../Common/Minimal/integer.o ../Common/Minimal/flash.o ../Common/Minimal/PollQ.o ../Common/Minimal/comtest.o ../Common/Minimal/flop.o ../Common/Minimal/semtest.o ../Common/Minimal/dynamic.o ../Common/Minimal/BlockQ.o ../../Source/tasks.o ../../Source/queue.o ../../Source/list.o ../../Source/portable/MemMang/heap2.o ../../Source/portable/GCC/ARM7LPC2000/port.o -nostartfiles boot.s -Xlinker -ortosdemo.elf -Xlinker -M -Xlinker -Map=rtosdemo.map
**/usr/lib/gcc-cross/arm-linux-gnueabi/7/../../../../arm-linux-gnueabi/bin/ld: rtosdemo.elf: Not enough room for program headers, try linking with -N
**/usr/lib/gcc-cross/arm-linux-gnueabi/7/../../../../arm-linux-gnueabi/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:92: recipe for target ‘rtosdemo.elf’ failed
make: *** [rtosdemo.elf] Error 1
Is there someone that had that issue before ?
How should this be fixed ?
Notes:
1. I already using -N and seems that the objects are not linked to the final elf.
2. I already using -Wl,–strip-all.
LPC2106,arm-linux-gnueabi-gcc, ver 7.2.0, build error
Hi,
I’m tring to build the FreeRTOSv10.0.0/FreeRTOS/Demo/ARM7LPC2106GCG project under linux.
I made some changes over the starting script by replacing the set inside bat files with export and added
.note.gnu.build-id :
{
. = ALIGN(4);
PROVIDE( _note = .);
*(.note.gnu.build-id)
. = ALIGN(4);
*(.note.gnu.build-id.*);
. = ALIGN(4);
PROVIDE( _enote = .);
} >flash
LPC2106,arm-linux-gnueabi-gcc, ver 7.2.0, build error
Sorry – not something I have ever seen before – but I’ve not built on
Linux. I’m not sure why there would not be enough room as only a
fraction of the program space is used. Is that a hosted compiler, by
which I mean one that expects Linux to run within a Linux environment?
If so then you need to be using an unhosted (bare metal) compiler.