public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/57703] New: Assembler function definition moved to a different ltrans then call
@ 2013-06-24 20:49 marxin.liska at gmail dot com
  2013-06-25  8:00 ` [Bug lto/57703] " rguenth at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: marxin.liska at gmail dot com @ 2013-06-24 20:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57703

            Bug ID: 57703
           Summary: Assembler function definition moved to a different
                    ltrans then call
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin.liska at gmail dot com

SandboxSyscall calls SyscallAsm that is an assembler function defined in the
same file: syscall.cc.

dump grep:
grep SyscallAsm *:
out/Release/nacl_helper.ltrans1.047i.inline:call SyscallAsm
out/Release/nacl_helper.ltrans1.047i.inline:call SyscallAsm
out/Release/nacl_helper.ltrans0.s:.type SyscallAsm, @function
out/Release/nacl_helper.ltrans0.s:SyscallAsm:.cfi_startproc
out/Release/nacl_helper.ltrans0.s:9:.size SyscallAsm, 9b-SyscallAsm
out/Release/nacl_helper.ltrans1.s:call SyscallAsm
out/Release/nacl_helper.ltrans1.045i.cp:call SyscallAsm

Linker error:
nacl_helper.ltrans1.ltrans.o: In function `playground2::SandboxSyscall(int,
long, long, long, long, long, long)':
nacl_helper.ltrans1.o:(.text+0x4503): undefined reference to `SyscallAsm'
/home/marxin/gcc-mirror/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/ld:
nacl_helper.ltrans1.ltrans.o: relocation R_X86_64_PC32 against undefined symbol
`SyscallAsm' can not be used when making a shared object; recompile with -fPIC
/home/marxin/gcc-mirror/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/ld: final
link failed: Bad value
collect2: error: ld returned 1 exit status

Dumps link:
https://docs.google.com/file/d/0B0pisUJ80pO1eFltWU9NUUZkaGM/edit?usp=sharing

When compiled with --param lto-partitions=1 no problem is encountered.


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-01-01 22:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-24 20:49 [Bug lto/57703] New: Assembler function definition moved to a different ltrans then call marxin.liska at gmail dot com
2013-06-25  8:00 ` [Bug lto/57703] " rguenth at gcc dot gnu.org
2013-06-26 12:45 ` marxin.liska at gmail dot com
2014-03-18 16:05 ` marxin.liska at gmail dot com
2014-03-19 11:03 ` rguenth at gcc dot gnu.org
2014-03-25 10:39 ` jamborm at gcc dot gnu.org
2014-09-06 10:21 ` trippels at gcc dot gnu.org
2014-09-06 10:29 ` trippels at gcc dot gnu.org
2014-12-28  8:52 ` trippels at gcc dot gnu.org
2014-12-28 10:17 ` amonakov at gcc dot gnu.org
2020-09-21  0:03 ` egallager at gcc dot gnu.org
2020-09-21  7:12 ` marxin at gcc dot gnu.org
2022-01-01 22:58 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).