- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
I use the following global compiler flags in the nios2configtool "-g3 -O0 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -DSYSTEM_BUS_WIDTH=32 -mno-hw-mul". I changed the default options -g and -O3 to -g3 and O0. According to the gcc documentation -g3 requests debugging information at level 3 (default is 2). The lib compiles fine but there seems to be a problem with the generated linker script target.ld in the lib dir. It now contains a lot of defines as in normal c- source code. The linker cannot handle these defines and exits because of a parse error. If I delete all the defines in target.ld the build succeeds. Is this a bug of the nios2configtool?
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
This is due to the way eCos generates it's linker script, and it effects all architectures (not just Nios II). The linker script is generated using the C pre-processor, and the linker can't cope with the macro debug information that the -g3 option creates. You can use anything up to and including -g2 when building eCos.
