This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
LD script errors
- From: Ankur Arora <ankura at cse dot iitk dot ac dot in>
- To: binutils at sources dot redhat dot com
- Date: Wed, 16 Jun 2004 00:32:41 +0530 (IST)
- Subject: LD script errors
Hi,
I need to get absolute placement for functions in a program I am
compiling. However, with a linker script like:
./apps/apps.o(.text.program_name)
./crypto/bio/bio_lib.o(.text.BIO_new)
/* 17:29 */
/* 0x8a0 = */ . = . + 0x3;
/* 17:32 */
./apps/openssl.o(.text.SortFnByName)
I am getting errors of the form:
./apps/apps.o(.text.load_cert+0x0): first defined here
apps/apps.o(.text.load_key+0x0): In function `load_key':
: multiple definition of `load_key'
./apps/apps.o(.text.load_key+0x0): first defined here
apps/apps.o(.text.load_pubkey+0x0): In function `load_pubkey':
: multiple definition of `load_pubkey'
./apps/apps.o(.text.load_pubkey+0x0): first defined here
apps/apps.o(.text.load_certs+0x0): In function `load_certs':
: multiple definition of `load_certs'
Any clue what's wrong? None of these symbols are actually
multiply defined.
Regards,
ankur
--
Friction is a drag.