Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHi dsl,
I am sorry. I ran it on the hex file. Here is the output of -h after running on the elf file: cnb1.elf: file format elf32-little Sections: Idx Name Size VMA LMA File off Algn 0 .entry 00000020 00010000 00010000 00001000 2**5 CONTENTS, ALLOC, LOAD, READONLY, CODE 1 .exceptions 00000194 00010020 00010020 00001020 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE 2 .text 00003630 000101b4 000101b4 000011b4 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE 3 .rodata 000003e8 000137e4 000137e4 000047e4 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 4 .rwdata 00000380 00013bcc 00013bcc 00004bcc 2**2 CONTENTS, ALLOC, LOAD, DATA 5 .bss 00000160 00013f4c 00013f4c 00004f4c 2**2 ALLOC I have not shown the remaining outputs. The base address of on-chip RAM is 0x00010000. The .entry section is pointing to this location as can be seen in this output. The output of -p is here: Program Header: LOAD off 0x00001000 vaddr 0x00010000 paddr 0x00010000 align 2**12 filesz 0x00000020 memsz 0x00000020 flags r-x LOAD off 0x00001020 vaddr 0x00010020 paddr 0x00010020 align 2**12 filesz 0x00003f2c memsz 0x0000408c flags rwx The -d produces the same error: objdump: Can't disassemble for architecture UNKNOWN! Can you get some idea here. regards, rajesh