Re: [AD] proposed patch for nicer asm symbols exports |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Mon, Aug 30, 2004, Eric Botcazou wrote:
> > Use the library's global offset table instead of directly accessing
> > global variables in the assembly routines. With proper #ifdef __PIC__
> > delimiters for people who don't want PIC, of course.
>
> Great! It would be even nicer to macroize the whole stuff.
Unfortunately but there's no simple way to do it automatically with
macros. The GOT lookup needs an extra register, which is available in
some cases, and which you need to push on the stack in other cases,
sometimes at the beginning of the function and sometimes just before the
lookup.
--
Sam.