Static linking on 64-bit PowerPC ELFv2

Sebastian Huber sebastian.huber@embedded-brains.de
Fri Aug 11 12:46:00 GMT 2017


On 11/08/17 13:37, Alan Modra wrote:

> On Fri, Aug 11, 2017 at 08:55:03PM +0930, Alan Modra wrote:
>> I made a bad assumption.  It seems that must be a complete line after
>> all, but one where ld has lost the referencing object for some
>> reason..
> Maybe you've managed to break your compiler?  I'm thinking you might
> have ELFv2 with some weird ELFv1 things thrown in, dot-symbols for
> instance.
>

Thank you very much for this hint. It saved me a lot of time.

It had something to do with the dot-symbols. I added

+/* Simplified copy and paste from linux64.h and freebsd64.h */
+#undef DOT_SYMBOLS
+#define DOT_SYMBOLS 0
+

to the GCC configuration and now this strange linker behaviour is gone.

Unfortunately, it didn't fix the issue with -mcmodel=medium:

https://gcc.gnu.org/ml/gcc/2017-08/msg00108.html

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the Binutils mailing list