Re: malloc always returns null

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You do not state what you are using as your "standard C library". I assume "newlib" it is the most common embedded C library.

I'm actually not sure. I'm using binaries compiled by the vendor that supplied the hardware debug tool & development environment for my target system.

In the ld command line, I specify

 -lc -lgcc -lstdc++

In the ld script, I specify

 SEARCH_DIR("...\arm-hitex-elf\lib\interwork\arm926ej-s")
 SEARCH_DIR("...\arm-hitex-elf\4.0.3\interwork\arm926ej-s")

The contents of those directories are

crtbegin.o
crtend.o
crti.o
crtn.o
libgcc.a
libgcov.a

crt0.o
iq80310.specs
libc.a
libg.a
libiberty.a
libm.a
libnosys.a
librdimon.a
librdpmon.a
libstdc++.a
libstdc++.la
libsupc++.a
libsupc++.la
pid.specs
rdimon-crt0.o
rdimon.specs
rdpmon-crt0.o
rdpmon.specs
redboot-crt0.o
redboot-syscalls.o
redboot.ld
redboot.specs

Can the answer be inferred from this info?

-ted


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux