[En-Nut-Discussion] Strange newlib syscall dependencies / linker problems when using 64bit integers

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Wed Feb 8 14:49:19 CET 2012


>>>>> "Ulrich" == Ulrich Prinz <ulrich.prinz at googlemail.com> writes:

    Ulrich> Got a part of it: in app/Makevars.cm3-gcc the linker lines where
    Ulrich> disabled. If you add back the line LDFLAGS = $(MCFLAGS)
    Ulrich> -nostartfiles -T$(LDSCRIPT)
    Ulrich> -Wl,-Map=$(PROJ).map,--cref,--gc-sections -L$(LIBDIR) it works
    Ulrich> without the overhead.

    Ulrich> For latest version it must be modified to LDPATH and LDNAME.

    Ulrich> Might be that you have to run 'Create Sampledirectory' from
    Ulrich> qnutconf again to apply the modification to the nutconf.mk
    Ulrich> files.

    Ulrich> Creating a local project without this modification results in a
    Ulrich> binary image of 90k, with patch applied it is 85k.  Bootloader
    Ulrich> without patch is 14850 bytes, with patch applied it is 8252
    Ulrich> bytes.

Ulrich,

what exactly is missing from the command
arm-none-eabi-gcc owi_test.o owi_timer.o -mcpu=cortex-m4 -mthumb
-mlittle-endian -D__CORTEX__ -nostartfiles
-L../../../devnut_m3n_git/nut/arch/cm3/ldscripts -Tstm32f405xG_ram.ld
-Wl,-Map=owi_test.map,--cref,--gc-sections -L../.././lib -Wl,--start-group
../.././lib/nutinit.o -lnutcrt -lnutarch -lnutdev -lnutos -lnutdev -lnutarch
-Wl,--end-group -o owi_test.elf

as produced by devnut_m3n-SVN?

Bye
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------



More information about the En-Nut-Discussion mailing list