public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
To: GusSabina <gussabina@yahoo.com>
Cc: "binutils@sourceware.org" <binutils@sourceware.org>
Subject: Re: Linking against armlink produced ELF for armv6-m (thumb only) CPU
Date: Wed, 06 Jul 2011 14:58:00 -0000	[thread overview]
Message-ID: <4E145FEA.5040305@arm.com> (raw)
In-Reply-To: <31998893.post@talk.nabble.com>

Hi,

The root cause of the issue is that the linker is assuming the wrong 
defaults for an object which does not have a .ARM.attributes section.

There is no one particular build attribute causing the error, it is the 
defaults ld assumes.

One workaround may be to strip all the .ARM.attributes sections out of 
the objects before passing them to the linker:
   arm-none-eabi-objcopy -R '.ARM.attributes' tst.o -o tst.stripped.o

Thanks,

Matt

On 05/07/11 18:49, GusSabina wrote:
>
> Hello Matthew:
>
> I'm getting the same error...
> What ARM Build attribute is explicitly causing this error? How should it be
> fixed?
>
> Thanks
> Gus
>
>
> Matthew Gretton-Dann-2 wrote:
>>
>> On Mon, 2010-08-09 at 18:42 +0300, Heikki Keränen wrote:
>>>
>>
>> The basic issue seems to be that we are treating an object with
>> no .ARM.attributes section as one where all the attributes take their
>> default value (0 or "") and not one which has all the attributes set to
>> undefined (as if a TAG_nodefaults attribute was present).
>>
>> I have raised the following bug in BugZilla to address this:
>> http://sourceware.org/bugzilla/show_bug.cgi?id=11897
>>
>> Thanks,
>>
>> Matt
>>
>> --
>> Matthew Gretton-Dann
>> Principal Engineer - PDSW Tools
>> ARM Ltd
>>
>>
>>
>


-- 
Matthew Gretton-Dann
Principal Engineer, PD Software - Tools, ARM Ltd

  reply	other threads:[~2011-07-06 13:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-09 12:39 Heikki Keränen
2010-08-09 15:42 ` Matthew Gretton-Dann
2010-08-09 18:09   ` Heikki Keränen
2010-08-10 21:17     ` Matthew Gretton-Dann
2011-07-05 18:21       ` GusSabina
2011-07-06 14:58         ` Matthew Gretton-Dann [this message]
     [not found]           ` <1310448299.35910.YahooMailRC@web34301.mail.mud.yahoo.com>
2011-07-12 22:33             ` Matthew Gretton-Dann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E145FEA.5040305@arm.com \
    --to=matthew.gretton-dann@arm.com \
    --cc=binutils@sourceware.org \
    --cc=gussabina@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).