From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris McGee Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Message-Id: Date: Fri, 2 Sep 2016 16:00:34 -0400 References: In-Reply-To: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Subject: Re: [9fans] Linker and duplicate symbols Topicbox-Message-UUID: 9c7097ba-ead9-11e9-9d60-3106f5b1d025 Thanks Cinap, Richard, That makes sense and was probably obvious or in a man page somewhere. Chris > On Sep 2, 2016, at 12:12 PM, cinap_lenrek@felloff.net wrote: > > uses the first one it finds, so the order matters. its not unusual > for programs to override certain library function by providing ther > own version and putting them first in the object file list. this > works only when the function you want to replace sits alone in his > own object file (the smallest unit of linkage). > > the kernel does link in some standard libc functions, but obviously > not the ones attempting syscalls :) > > -- > cinap >