Am 2015-02-17 um 16:00 schrieb David Edelsohn:
> On Tue, Feb 17, 2015 at 2:33 AM, Michael Haubenwallner
> <michael.haubenwall...@ssi-schaefer.com> wrote:

>> One more thought: How is that dollar_inside thing seen in
>> ASM_OUTPUT_EXTERNAL supposed to work/be used?
> 
> AIX XCOFF does not allow $ in label names.  The code is suppose to
> substitute underscore "_" in the name and then generate a ".rename"
> pseudo-op so the visible name of the symbol is correct.

Ok - but how to make use of that?
I've tried:

  $ cat dollarfunc.c
  extern void externfunc(void) asm("extern$func");
  void (*localfunc)(void) = externfunc;

  $ gcc -c dollar.c
  Assembler:
  /tmp//ccg2B8d2.s: line 9: 1252-142 Syntax error.
  /tmp//ccg2B8d2.s: line 11: 1252-142 Syntax error.

Is this something that should work already?

Thanks!
/haubi/

Reply via email to