Bug 12242 - arm-rtems ld unexpected section overflow
Summary: arm-rtems ld unexpected section overflow
Status: RESOLVED NOTABUG
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.21
: P2 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-19 17:03 UTC by Joel Sherrill
Modified: 2020-10-19 20:17 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Sherrill 2010-11-19 17:03:34 UTC
2.20.90-1

This did not happen with 2.20

$ make
arm-rtems4.11-gcc -B../../../../../arm7tdmi/lib/ -specs bsp_specs -qrtems -mcpu=arm7tdmi -O2 -g -Wall -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs    -mcpu=arm7tdmi   -o hello.exe init.o ../../../../../arm7tdmi/lib/no-barrier.rel ../../../../../arm7tdmi/lib/no-dpmem.rel ../../../../../arm7tdmi/lib/no-event.rel ../../../../../arm7tdmi/lib/no-msg.rel ../../../../../arm7tdmi/lib/no-mp.rel ../../../../../arm7tdmi/lib/no-part.rel ../../../../../arm7tdmi/lib/no-region.rel ../../../../../arm7tdmi/lib/no-signal.rel ../../../../../arm7tdmi/lib/no-timer.rel ../../../../../arm7tdmi/lib/no-rtmon.rel ../../../../../arm7tdmi/lib/no-ext.rel 
/opt/rtems-4.11/lib/gcc/arm-rtems4.11/4.5.1/../../../../arm-rtems4.11/bin/ld: hello.exe section `.bss' will not fit in region `sdram'
/opt/rtems-4.11/lib/gcc/arm-rtems4.11/4.5.1/../../../../arm-rtems4.11/bin/ld: region `sdram' overflowed by 90975 bytes
Comment 1 Joel Sherrill 2010-11-19 17:07:13 UTC
Test case with objects and scripts is at 

pr12242.tar.bz2">http://www.rtems.org/ftp/pub/rtems/people/joel/bugs/binutils-pr12242.tar.bz2
Comment 2 Joel Sherrill 2020-10-19 20:17:26 UTC
This is ten years old and likely the error is just one of the many obscure ways ld reports that a linked program will not fit into memory for some reason.