> I'm a little concerned about the fact that (in theory) DECL_NAME could > have spaces, or other assembler-unfriendly characters. I'm not sure > what to do in that circumstance; it's probably impossible to do anything > better than we do now, without the assembler providing some kind of > special support. (I'm not actually sure what the assembler does with > the name; presumably puts it in debug information.)
I can speak for the SPARC 64-bit assembler: it creates a special ELF symbol for it (STB_GLOBAL, STT_REGISTER, SHN_UNDEF). -- Eric Botcazou