LTO & top-level ASM

Ian Lance Taylor iant@google.com
Mon Mar 24 17:35:00 GMT 2014


On Mon, Mar 24, 2014 at 6:26 AM, Martin Liška <mliska@suse.cz> wrote:
>
>    I've been solving undefined symbols related to:
> http://gcc.gnu.org/PR57703. In chromium there's a following inline asm:
>
> asm(".type Syscall, @function\n" ...);
>
> intptr_t SandboxSyscall(...)
> {
>    asm volatile("call SyscallAsm");
> }

Can you explain why you need that asm statement?

Normally the .type declaration would appear where the Syscall symbol
is defined.  Why are you putting it elsewhere?

Ian



More information about the Gcc mailing list