How to create a library which contains absolute addresses of exported functions?

Andreas Schwab schwab@suse.de
Thu Mar 6 10:01:00 GMT 2008


"PRC" <panruochen@gmail.com> writes:

> It can't work on some gcc.
>
>   `1.c'
> -----------------------
> int main()
> {
> 	printf("This is function main!\n");
> }
>
>   `2.S'
> -----------------------
> .globl printf
>
> printf = 0x80001600 

Try adding .type printf,@function.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Binutils mailing list