[RTEMS Project] #2638: pc386: ld -r issue with per function sections

RTEMS trac trac at rtems.org
Thu Mar 10 21:47:37 UTC 2016


#2638: pc386: ld -r issue with per function sections
---------------------------+------------------
 Reporter:  joel.sherrill  |      Owner:
     Type:  defect         |     Status:  new
 Priority:  normal         |  Milestone:  4.12
Component:  General        |    Version:  4.12
 Severity:  normal         |   Keywords:
---------------------------+------------------
 The pc386 BSP has an issue with "ld -r" when function-sections is enabled
 which does not seem to occur on any other BSP. The same lines were added
 to the custom .cfg file as on other BSPs. It is unknown at this point
 whether this is an x86 specific "ld -r" issue or a pc386 build
 configuration issue.

 Per-function-section linking is disabled until this is addressed.

 i386-rtems4.12-gcc --pipe -B../../../../../.././lib/
 -B../../../../../.././pc386/lib/ -specs bsp_specs -qrtems  -mtune=i386 -O2
 -g -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes
 -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs
 -qnolinkcmds -nostdlib -r -Wl,--gc-sections -Wl,-Ttext,0x00100000 -o
 ne2000.rel ne2000_rel-ne2000.o
 /data/home/joel/rtems-4.11-work/tools/4.12/bin/../lib/gcc/i386-rtems4.12/6.0.0/../../../../i386-rtems4.12/bin/ld:
 gc-sections requires either an entry or an undefined symbol
 collect2: error: ld returned 1 exit status

--
Ticket URL: <http://devel.rtems.org/ticket/2638>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list