This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]