Forum Discussion
Altera_Forum
Honored Contributor
14 years agoYou might be able to use objcopy to remove (or mark non-loadable) the .entry section, but you'll probably also need to change the elf entry point as well.
Might be easier to decypher the linker script and write one that DTRT. You may also want one that leads the initialised .data(?) with its correct physaddr, and excludes the code to copy it on startup - if you look carefully the second program area has paddr != vaddr. This is particularly fubar if you are trying to run from internal memory. (I suspect the EPCS loader is only capable of loading one contiguous memeory area!) I think the jtag loader loads all the program sections then jumps to the entry point - it has a 'magic' method of overriding the reset address.