Should asm("" : : : "memory") order accesses to the GOT?

Franz Sirl Franz.Sirl-kernel@lauterbach.com
Thu Jun 17 13:13:00 GMT 1999


Hi,

the subject says it all, should address loads from the GOT considered as memory
accesses?

Currently this is not true at least on PPC and so I can't use the asm() to
cure a glibc-2.1.1/ld.so segfault (gcc-2.95pre moves an access to the GOT
before the call to the bootstrap relocation of ld.so).

This is just a question for understanding, it has come up while trying the
"easy" workaround.

Franz.


More information about the Gcc mailing list