All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Hall <mhall-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
To: Masaru Oki <m-oki-kJJssGRo5Gr08ZWpFnN8/c8NsWr+9BEh@public.gmane.org>
Cc: dev-VfR2kkLFssw@public.gmane.org
Subject: Re: Debugging EAL PCI / Driver Init
Date: Sat, 2 Aug 2014 09:46:00 -0700	[thread overview]
Message-ID: <20140802164600.GA9312@mhcomputing.net> (raw)
In-Reply-To: <CAFLKUzKOPxC4jQBG6C07QXJ=MrcydxG9FdHD6h7omj6BY=99LQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Sun, Aug 03, 2014 at 01:37:06AM +0900, Masaru Oki wrote:
> cc links library funtion from archive only if call from other object.
> but new dpdk pmd library has constractor section and not call directly.
> ld always links library funtion with constractor section.
> use -Xlinker, or use ld instead of cc.

Hello Oki-san,

The trick to fix it was this, I finally found it in the example Makefiles with 
V=1 flag.

-Wl,--whole-archive -Wl,--start-group -lintel_dpdk -Wl,--end-group -Wl,--no-whole-archive

Thank you for the advice you provided, I couldn't have fixed it without your 
suggestions... it got me to look more closely at the linking. Importantly, 
"-Wl,--whole-archive" includes the entire archive whether or not it's called 
from other objects, so we don't lose the constructors, just like you said.

Matthew.

  parent reply	other threads:[~2014-08-02 16:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-01 17:51 Debugging EAL PCI / Driver Init Matthew Hall
     [not found] ` <20140801175138.GA31733-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
2014-08-02 15:29   ` Matthew Hall
     [not found]     ` <20140802152904.GA9064-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
2014-08-02 15:43       ` Matthew Hall
     [not found]         ` <CAFLKUzKOPxC4jQBG6C07QXJ=MrcydxG9FdHD6h7omj6BY=99LQ@mail.gmail.com>
     [not found]           ` <CAFLKUzKOPxC4jQBG6C07QXJ=MrcydxG9FdHD6h7omj6BY=99LQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-02 16:46             ` Matthew Hall [this message]
     [not found]               ` <20140802164600.GA9312-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
2014-08-03 10:38                 ` Alex Markuze
     [not found]                   ` <CAKfHP0VrDBJD9UeFwJurUNBfXTcBpZxa_VfeKBNJF56jY52LDA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-03 11:41                     ` Alex Markuze
     [not found]                       ` <CAKfHP0UQRtDLU4pDwSoJF0AJfhPFkuo6R6vLrHcAd20VRHWfWA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-08-03 17:23                         ` Matthew Hall
     [not found]                           ` <bf0653a3-6e73-4e51-a626-cfb4544d3fe3-2ueSQiBKiTY7tOexoI0I+QC/G2K4zDHf@public.gmane.org>
2014-08-03 18:13                             ` Jayakumar, Muthurajan
     [not found]                               ` <5D695A7F6F10504DBD9B9187395A21797D0F92FA-8oqHQFITsIFcIJlls4ac1rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-08-03 21:39                                 ` Matthew Hall

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=20140802164600.GA9312@mhcomputing.net \
    --to=mhall-hv3ognyu3jfzzajbqzqcxq@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    --cc=m-oki-kJJssGRo5Gr08ZWpFnN8/c8NsWr+9BEh@public.gmane.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.