c语言 - 部分不适合区域"rom"



我已经凝结了最新的contiki-master。现在,我需要从Sicslowpan.C打印调试消息。如果#define DEBUG DEBUG_NONE仿真有效,但是如果我在sicslowpan.c中设置#define DEBUG DEBUG_PRINT,则即使在Sky Motes上的hello-world.c也会遇到以下错误。我没有触摸任何其他文件。我如何摆脱此错误?

/usr/local/msp430/bin/../lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: hello-world.sky section `.rodata' will not fit in region `rom'
/usr/local/msp430/bin/../lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: section .vectors loaded at [0000ffe0,0000ffff] overlaps section .rodata loaded at [0000f590,000100b0]
/usr/local/msp430/bin/../lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld: region `rom' overflowed by 456 bytes
/usr/local/msp430/bin/../lib/gcc/msp430/4.7.0/mmpy-16/libcrt0.a(_copy_data.o): In function `__do_copy_data':
/home/user/building-mspgcc/gcc-4.7.0-msp430/msp430/mmpy-16/libgcc/../../../../gcc-4.7.0/libgcc/config/msp430/crt0.S:208:(.init4+0x12): relocation truncated to fit: R_MSP430_16_BYTE against symbol `__data_load_start' defined in *ABS* section in hello-world.sky
obj_sky/contiki-sky-main.o: In function `main':
/home/user/contiki/examples/hello-world/../../platform/sky/./contiki-sky-main.c:302:(.init9+0x176): relocation truncated to fit: R_MSP430_16 against symbol `contikimac_driver' defined in .rodata section in contiki-sky.a(contikimac.o)
/home/user/contiki/examples/hello-world/../../platform/sky/./contiki-sky-main.c:303:(.init9+0x17a): relocation truncated to fit: R_MSP430_16 against symbol `csma_driver' defined in .rodata section in contiki-sky.a(csma.o)
/home/user/contiki/examples/hello-world/../../platform/sky/./contiki-sky-main.c:304:(.init9+0x17e): relocation truncated to fit: R_MSP430_16 against symbol `nullsec_driver' defined in .rodata section in contiki-sky.a(nullsec.o)
/home/user/contiki/examples/hello-world/../../platform/sky/./contiki-sky-main.c:307:(.init9+0x186): relocation truncated to fit: R_MSP430_16 against symbol `contikimac_driver' defined in .rodata section in contiki-sky.a(contikimac.o)
/home/user/contiki/examples/hello-world/../../platform/sky/./contiki-sky-main.c:307:(.init9+0x1b4): relocation truncated to fit: R_MSP430_16 against symbol `contikimac_driver' defined in .rodata section in contiki-sky.a(contikimac.o)
/home/user/contiki/examples/hello-world/../../platform/sky/./contiki-sky-main.c:307:(.init9+0x1b8): relocation truncated to fit: R_MSP430_16 against symbol `csma_driver' defined in .rodata section in contiki-sky.a(csma.o)
/home/user/contiki/examples/hello-world/../../platform/sky/./contiki-sky-main.c:307:(.init9+0x1bc): relocation truncated to fit: R_MSP430_16 against symbol `nullsec_driver' defined in .rodata section in contiki-sky.a(nullsec.o)
contiki-sky.a(cc2420.o): In function `cc2420_init':
/home/user/contiki/examples/hello-world/../../dev/cc2420/cc2420.c:635:(.text.process_thread_cc2420_process+0x3c): relocation truncated to fit: R_MSP430_16 against symbol `contikimac_driver' defined in .rodata section in contiki-sky.a(contikimac.o)
Process returned error code 2
contiki-sky.a(sicslowpan.o): In function `sicslowpan_get_last_rssi':
/home/user/contiki/examples/hello-world/../../core/net/ipv6/sicslowpan.c:1797:(.text.send_packet+0x12): relocation truncated to fit: R_MSP430_16 against symbol `nullsec_driver' defined in .rodata section in contiki-sky.a(nullsec.o)
/home/user/contiki/examples/hello-world/../../core/net/ipv6/sicslowpan.c:1797:(.text.output+0x32): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status
make: *** [hello-world.sky] Error 1

p.s:对于试图在不传达原因的情况下关闭问题的人,请理解问题不是too-broadprimarily opinion-based

您的第一行错误:world.sky部分 .rodata' will not fit in region rom'。

因此,尝试使用Z1(92 kb)Sky Mote(48 KB)ROM的ROM Intate ROM。

最新更新