[MSP430-elf] Linking issue
Orlando Arias
orlandoarias@gmail.com
Mon Sep 28 21:59:00 GMT 2015
Greetings,
> Because your Makefile has LDFLAGS += $(LDFLAGS)... which adds the
> first LDFLAGS to itself. += means "append" so you don't need to
> specify the previous value as well.
Well, that was a huge oversight on my part and now I feel like an utter
idiot. Removed the redundant $(LDFLAGS) and the warnings go away.
Thank you very much for your assistance.
Cheers,
Orlando.
On 09/28/2015 05:55 PM, DJ Delorie wrote:
>> Passed the option to LD, attached is the output. You are indeed correct
>> that collect2 is receiving the linker script twice:
>
> You'll have to grep through the spec files to find the --script=
> entries and try to trace through them. You have a couple other things
> duplicated as well. Might be a side-effect of the %rename. I don't
> see an obvious bug there though, and I don't know if gcc has a spec
> file debugger.
>
> At least you know why it's being redefined now, though :-)
>
>> I am not even sure why the linker is receiving the mmcu parameter twice.
>
> Because your Makefile has LDFLAGS += $(LDFLAGS)... which adds the
> first LDFLAGS to itself. += means "append" so you don't need to
> specify the previous value as well.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20150928/ad0ddf84/attachment.sig>
More information about the Binutils
mailing list