Altera_Forum
Honored Contributor
16 years agoLinker Problem Multiple Definition crt0.S vs. crt0.o
Hi,
after modifying my dual NIOS II system in SOPC Builder (introduction of Avalon-MM Pipeline Bridges) I am facing linker errors which I am unable to understand: ... /cygdrive/c/altera/SoftwareExp/nios_syslib_tag/Debug/crt0.o(.entry+0x0): In function `__reset': /cygdrive/c/altera/72/ip/nios2_ip/altera_nios2/HAL/src/crt0.S:237: multiple definition of `__reset' /cygdrive/c/altera/SoftwareExp/nios_syslib_tag/Debug/crt0.o(.entry+0x0):/cygdrive/c/altera/72/ip/nios2_ip/altera_nios2/HAL/src/crt0.S:237: first defined here /cygdrive/c/altera/SoftwareExp/nios_syslib_tag/Debug/crt0.o(.text+0x0): In function `_start': /cygdrive/c/altera/72/ip/nios2_ip/altera_nios2/HAL/src/crt0.S:237: multiple definition of `_start' /cygdrive/c/altera/SoftwareExp/nios_syslib_tag/Debug/crt0.o(.text+0x0):/cygdrive/c/altera/72/ip/nios2_ip/altera_nios2/HAL/src/crt0.S:237: first defined here ... The same error messages apply for the second CPU in the system. Both CPUs run C++ code without an operating system. I am wondering whether the information above is sufficient for someone to provide an indication on what could be the root of such multiple definition problems for _start and __reset. Any help would be appreciated. Best regards, Manfred