From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <91091b7db7ee00347dfc22bd3d9ab312@hamnavoe.com> To: 9fans@9fans.net From: Richard Miller <9fans@hamnavoe.com> Date: Fri, 2 Sep 2016 17:11:18 +0100 In-Reply-To: <9B2C4ECD-E92C-4C76-8678-74E26DBCD1CD@yahoo.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Linker and duplicate symbols Topicbox-Message-UUID: 9c5bcd44-ead9-11e9-9d60-3106f5b1d025 > Is it that the linker prefers a symbol from a .5 file over the .a file? I believe it's supposed to pick the first one it finds. Object files and libraries are processed in the order in which they appear on the command line. On my system proc.5 appears before libc.a in the ld command, and libc.a(sleep.5) doesn't contain any symbols other than sleep, so there should be no reason for ld to pull it in from the library.