All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vineet.Gupta1@synopsys.com (Vineet Gupta)
To: linux-snps-arc@lists.infradead.org
Subject: static linking broken?
Date: Tue, 11 Apr 2017 14:51:24 -0700	[thread overview]
Message-ID: <59250a19-ec37-c315-ded0-fa61f5b3f4de@synopsys.com> (raw)
In-Reply-To: <20170411205225.GD5361@waldemar-brodkorb.de>

On 04/11/2017 01:52 PM, Waldemar Brodkorb wrote:
> Hi Vineet,
>
> it seems static linking is totally broken for ARC and uClibc-ng:
>
> file root_nsim-arcv2_uclibc-ng_archs/bin/busybox 
> root_nsim-arcv2_uclibc-ng_archs/bin/busybox: ELF 32-bit LSB
> executable, *unknown arch 0xc3* version 1 (SYSV), dynamically
> linked, interpreter *empty*, for GNU/Linux 4.8.0, stripped
>
> I am using arc-2016.09-release within OpenADK.
>
> Do you ever used static linking?
>
> I only test with nsim, but can't use any static binaries.
>
> best regards
>  Waldemar

I do test static linked busybox and last I checked 2016.09 seemed ok ! (below is
busybox built against prebuilt 2016.09 toolchain on github)

$ file arc_initramfs_hs_1612-gnu-2016.09-BIG/bin/busybox_static
ELF 32-bit LSB executable, *unknown arch 0xc3* version 1 (SYSV), statically
linked, for GNU/Linux 4.8.0, not stripped

Although I've seen this issue in different context - Linux kernel perf, Alexey u
remember !

-Vineet

  reply	other threads:[~2017-04-11 21:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-11 20:52 static linking broken? Waldemar Brodkorb
2017-04-11 21:51 ` Vineet Gupta [this message]
2017-04-12 11:36   ` Alexey Brodkin
2017-04-12 17:59     ` Waldemar Brodkorb

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=59250a19-ec37-c315-ded0-fa61f5b3f4de@synopsys.com \
    --to=vineet.gupta1@synopsys.com \
    --cc=linux-snps-arc@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.