patacongo commented on issue #3737: URL: https://github.com/apache/incubator-nuttx/issues/3737#issuecomment-842712908
Was: Re: [apache/incubator-nuttx] eagle100:nxflat and eagle100:thttpd build errors (#3737) > > Not to derail this issue, but what I'm actually wanting to be able to > do is support loading elf files on some of these smaller chips without > a mmu, but keep the memory usage down by not having to have a bunch of > copy of libc included. > New thread created. The way that has been done in the past was too add the libc functions to the base FLASH symbol table. That symbol table draws the libc functions into the base FLASH image. Then there is one copy of the libc functions in base FLASH and no libc functions in the ELF module. The ELF module is linked to the libc functions just as they are linked to the OS inteface functions. This will accomplish the size decrease you are looking for. This is why the files libs/libc/libc.csv and math.csv exist: To create C library symbol tables using apps/tools/mksymtab.sh There was some documentation for doing this somewhere, but I can't remember where now. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
