Re: LTO & top-level ASM

2014-03-25 Thread Ian Lance Taylor
On Tue, Mar 25, 2014 at 3:26 AM, Martin Liška wrote: > The code resides in Chromium project, please see full source code: > https://github.com/scheib/chromium/blob/master/sandbox/linux/seccomp-bpf/syscall.cc The easy workaround is to make SyscallAsm global. And frankly I would put it in a .S fil

Re: LTO & top-level ASM

2014-03-25 Thread Martin Liška
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 wrote: I've been solving undefined sy

Re: LTO & top-level ASM

2014-03-24 Thread Ian Lance Taylor
On Mon, Mar 24, 2014 at 6:26 AM, Martin Liška 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")