This is the mail archive of the binutils@sourceware.org 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]

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


You can create a .S file that has entries like this:

        .global strcpy
strcpy   = 0x80001600
        .global vsprintf
vsprintf = 0x80002290
        .global memmove
memmove  = 0x80001e50

If you assemble that and put it in your library, it will do the same
thing, without the linker script or .c file.

You could do one symbol per .S file if you wanted to.


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