- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I am using nios-elf tools to compile and build a binary for NIOS target. There are many unused functions in the code which I want to remove during linking. I have used -ffunction-sections as a compile option and -gc-sections as linker option. Though I am able to put the functions in their own sections , I am not able to run the resulting binary. I have often read that not all targets support this. Does any one know if NIOS target supports this? Cheers, AjayLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by ajay@Jan 19 2006, 08:11 AM i am using nios-elf tools to compile and build a binary for nios target. there are many
unused functions in the code which i want to remove during linking.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12280)
--- quote end ---
--- Quote End --- Did you try putting each function in a separate file, creating a library out of them, and linking the library to the main file? the linker should be able to do the job automatically for you! bye Paolo

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page