From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: sby@ives.lkg.dec.com Cc: binutils@sourceware.cygnus.com Subject: Re: Including rel* sections in an ELF64 executable Date: Wed, 26 Jan 2000 15:04:00 -0000 Message-id: <20000126230338.7368.qmail@daffy.airs.com> References: <200001262255.RAA31829@ives.lkg.dec.com> X-SW-Source: 2000-01/msg00168.html From: Bharadwaj Yadavalli Date: Wed, 26 Jan 2000 17:55:19 -0500 (EST) Does the linker use output rules other than those specified in the linker script? It was pointed out to me that the linker scripts simply direct the placement of the output sections. But what is it that triggers the discarding of local relocation information, in say a .o file, when executing /usr/lib/ldscripts/elf64alpha.x and retention of the same when executing /usr/lib/ldscripts/elf64alpha.xr? The linker uses the .xr linker script when the -r option is used. The -r option is what controls whether to retain relocation information. Ian