Forum Discussion
Altera_Forum
Honored Contributor
14 years agoDifferences between dcc/objdump and nios2-elf-gcc/nios2-elf-objdump?
Hi! I'm trying to get some information out of the elf-file but it seems that there are some differences between the regular tools and the tools with nios2-elf- prefix. Before I start to ...
Altera_Forum
Honored Contributor
14 years agoNo... Just compile your other program with the relevant .h files, and add:
-Wl,--just-symbols=$(OBJ_DIR)/prog_2.elf to the build so that it has all the sybols available. Or extract a subset of the symbols using nm or objdump -t (or read the elf symbol table directly yourself). I specify that (and -Wl,--no-warn-mismatch) to link a linux ppc binary with the symbol table of the nios code. It also gets the nios code+data embedded into its data areas (generated by a couplye of objcopy commands).