This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: LTO & top-level ASM


The code resides in Chromium project, please see full source code:
https://github.com/scheib/chromium/blob/master/sandbox/linux/seccomp-bpf/syscall.cc

Martin

On 03/24/2014 06:34 PM, Ian Lance Taylor wrote:
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]