Hi,

you seem to pass --no-crt to sdcc and pass in your own crt0iz_toad4.o.
Could this be the problem? Can the order be bad? Maybe have the linker look
at crt0iz last? I'm not sure where _cinit is supposed to come from...

Best regards,
Raphael


Am 21.07.2017 19:56 schrieb "Kustaa Nyholm" <kustaa.nyh...@sparetimelabs.com
>:

When linking my code I get this (same line seven times):

warning: Relocation symbol "_cinit" [0x000000] has no section. (pass 0)
warning: Relocation symbol "_cinit" [0x000004] has no section. (pass 0)
warning: Relocation symbol "_cinit" [0x000008] has no section. (pass 0)
warning: Relocation symbol "_cinit" [0x000000] has no section. (pass 0)
warning: Relocation symbol "_cinit" [0x000004] has no section. (pass 0)
warning: Relocation symbol "_cinit" [0x000008] has no section. (pass 0)'

This is with sdcc 3.4.0 targeting PIC18F45K50.

I'll include the complete build output at the end.

cheers Kusti

...

/Users/nyholku/sdcc-3.4.0/bin/sdcc "-Wl -f 0xffff" --no-crt --ivt-loc=0x800
-V -L /Users/nyholku/sdcc-3.4.0/share/sdcc/non-free/lib/pic16 -Wa,-S,0
-Wl,-m,-s18f45k50.lkr -mpic16 -p18f45k50 --disable-warning 85 --std-sdcc99
--obanksel=3 --use-non-free -o ../obj/toad4.hex ../obj/main.o
../obj/toad4.o ../obj/usb_hid.o ../obj/usb_core.o ../obj/usb_pic_defs.o
../obj/usb_user_config.o ../obj/command_queue.o ../obj/crt0iz_toad4.o
libc18f.lib libio18f45k50.lib libm18f.lib libsdcc.lib  ../obj/hi_speed_irq.o
/Users/sdcc-builder/build/sdcc-build/orig/sdcc/src/pic16/main.c:701 setting
interrupt vector addresses 0x800
+ gplink -I/Users/nyholku/sdcc-3.4.0/share/sdcc/non-free/lib/pic16
-I/Users/nyholku/sdcc-3.4.0/bin/../share/sdcc/lib/pic16
-I/usr/local/share/sdcc/lib/pic16 -I/Users/nyholku/sdcc-3.4.0/
bin/../share/sdcc/non-free/lib/pic16
-I/usr/local/share/sdcc/non-free/lib/pic16
-f 0xffff  -m -s18f45k50.lkr  -w -r -o ../obj/toad4.hex  ../obj/main.o
../obj/toad4.o ../obj/usb_hid.o ../obj/usb_core.o ../obj/usb_pic_defs.o
../obj/usb_user_config.o ../obj/command_queue.o ../obj/crt0iz_toad4.o
../obj/hi_speed_irq.o   libc18f.lib libio18f45k50.lib libm18f.lib
libsdcc.lib libdev18f45k50.lib libsdcc.lib
warning: Relocation symbol "_cinit" [0x000000] has no section. (pass 0)
warning: Relocation symbol "_cinit" [0x000004] has no section. (pass 0)
warning: Relocation symbol "_cinit" [0x000008] has no section. (pass 0)
warning: Relocation symbol "_cinit" [0x000000] has no section. (pass 0)
warning: Relocation symbol "_cinit" [0x000004] has no section. (pass 0)
warning: Relocation symbol "_cinit" [0x000008] has no section. (pass 0)
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to