🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3621

Re: Force linking of .a?

#3621
From: Mumit Khan
Date: Tue, 11 May 1999 00:00
14 lines
1126 bytes
In article <p5ogjs8dgz.fsf@baynetworks.com>,
Paul D. Smith <psmith@baynetworks.com> wrote:
>
>What we'd like to do is find some kind of linker flag (or other method)
>that forces the entire contents of particular .a's to be linked, even if
>nothing appears to reference any of the symbols in some of the .o's in
>the archive.

GNU ld has the --whole-archive option (--no-whole-archive to turn it
off) that might work for you. Don't see that feature in most other 
linkers however.

Regards,
Mumit
Technical Details
Message-ID: <7h8g1n$lvu$1@news.doit.wisc.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <p5ogjs8dgz.fsf@baynetworks.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,9f41c0c55a58cbbd
X-Google-Attributes: gid11318c,public
X-Google-Thread: fc89c,9f41c0c55a58cbbd
X-Google-Attributes: gidfc89c,public
X-Google-Thread: 11035d,9f41c0c55a58cbbd
X-Google-Attributes: gid11035d,public
From: khan@xraylith.wisc.edu (Mumit Khan)
Subject: Re: Force linking of .a?
Date: 1999/05/11
Message-ID: <7h8g1n$lvu$1@news.doit.wisc.edu>
X-Deja-AN: 476467566
References: <p5ogjs8dgz.fsf@baynetworks.com>
Organization: Center for X-ray Lithography, UW-Madison
Newsgroups: comp.unix.programmer,comp.unix.solaris,gnu.gcc.help