|
From: | John Dubery |
Subject: | [Gm2] A burst of internal compiler issues from gm2-6.4.0 when linking a stand-alone application |
Date: | Fri, 17 Nov 2017 16:39:16 +0000 |
Gaius, I've encountered a strange set of messages when doing the link of a set of modules for stand-alone use. There are two types of message. 1. MOD and DIV I get 4 messages differing by the address only for one occurrence each of MOD and DIV in a sub-module: ScreenTest.mod:(.text+0xb54): undefined reference to `__aeabi_ldivmod' The first line is: ScreenTest.o: In function `RPiGPIOControl_FlashNumber': which is where the MOD and DIV are but there is also a MOD in the main module that doesn't trigger this message. 2. Undefined references to labels that I don't use. A message similar to this: /home/jd4/opt/lib/gcc//arm-linux-gnueabihf/6.4.0/libgcc_eh.a(unwind-arm.o): In function `unwind_phase2':occurs for several labels: __exidx_end __exidx_start memcpy twice abort 4 times The occurrences with abort do indeed have this label/function called at the specified place and file. But memcpy does not appear in the file listed in its error messages. The compilation step is: gm2 -nostartfiles -fno-exceptions -fno-pth -fm2-whole-program -flibs=min -c ScreenTest.mod The link step is: gm2 -static -nostdlib -nostartfiles -fno-exceptions -fno-pth -fm2-whole-program -flibs=min -fonlylink -TSimple.ld ScreenTest.o ScreenTest-start.o -o ScreenTest.elfSimple.ld is very simple. It has .init, .text, .data, .bss and discards for everything else. I feel I must have made a simple mistake. Can you point me in the right direction? Regards, John |
[Prev in Thread] | Current Thread | [Next in Thread] |