[RTEMS Project] #2528: Update https://devel.rtems.org/wiki/TBR/Delete/NewlibMemoryAllocation

RTEMS trac trac at rtems.org
Thu Feb 4 07:17:53 UTC 2016


#2528: Update https://devel.rtems.org/wiki/TBR/Delete/NewlibMemoryAllocation
--------------------------+---------------------------
 Reporter:  nick.withers  |       Owner:  nick.withers
     Type:  defect        |      Status:  accepted
 Priority:  normal        |   Milestone:  4.11.1
Component:  Newlib        |     Version:  4.11
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+---------------------------

Comment (by sebastian.huber):

 One approach would be to use the linker to resolve the dependencies.  For
 example build a BSP with --enable-tests and use a test without references
 to malloc() etc.

 sparc-rtems4.12-gcc -B../../../../../sis/lib/ -specs bsp_specs -qrtems
 -mcpu=cypress -O2 -g -ffunction-sections -fdata-sections -Wall -Wmissing-
 prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-
 externs -Wl,-Map,map.txt  -Wl,--gc-sections  -mcpu=cypress   -o
 spinternalerror01.exe init.o -Wl,-u,strftime

 nm *.exe | grep '\<malloc\>\|\<calloc\>\|\<realloc\>'
 0200b394 T malloc
 0200b774 T realloc

--
Ticket URL: <http://devel.rtems.org/ticket/2528#comment:15>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list