public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dscao999 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/66219] The gcc generated section start/stop pointers become undefined when option -flto is used Date: Thu, 21 May 2015 13:25:00 -0000 [thread overview] Message-ID: <bug-66219-4-TWI7WDGiT3@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-66219-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66219 --- Comment #2 from Cao Da Shi <dscao999 at hotmail dot com> --- This issue poped up when cross compiling systemd-219. It is confirmed that the missed section has the __attribute__((used)) declared. But still the link will only pass without "-flto", with all other options exactly the same. The files are too large to be sent. The link command is as follows: arm-elf-linux-gnueabi-gcc -shared -Wl,-Map=/tmp/mymap.txt -fPIC -DPIC pam_systemd_la-pam_systemd.o -Wl,--whole-archive libsystemd-internal.a libsystemd-shared.a -Wl,--no-whole-archive -Wl,-rpath -lrt -lcap -lm libpam_misc.so libpam.so -ldl -flto -O2 -Wl,--as-needed -Wl,--no-undefined -Wl,--gc-sections -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--version-script=pam_systemd.sym -pthread -Wl,-soname -Wl,pam_systemd.so -o /tmp/pam_systemd.so $ arm-elf-linux-gnueabi-gcc -v Using built-in specs. COLLECT_GCC=arm-elf-linux-gnueabi-gcc COLLECT_LTO_WRAPPER=/opt/cxpkg/cxarm/libexec/gcc/arm-elf-linux-gnueabi/4.8.4/lto-wrapper Target: arm-elf-linux-gnueabi Configured with: /home/dscao/build/native/gcc/gcc-4.8.4/configure --prefix=/opt/cxpkg/cxarm --target=arm-elf-linux-gnueabi --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --with-tune=cortex-a8 --with-arch=armv7-a -with-mode=arm --with-float=hard --with-fpu=vfp3 --disable-nls --with-system-zlib --with-sysroot=/var/opt/cxroots/armroot --enable-languages=c,c++ --enable-checking=release --enable-threads=posix --enable-shared Thread model: posix gcc version 4.8.4 (GCC)
prev parent reply other threads:[~2015-05-21 13:25 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-05-20 13:12 [Bug c/66219] New: " dscao999 at hotmail dot com 2015-05-21 8:57 ` [Bug c/66219] " rguenth at gcc dot gnu.org 2015-05-21 13:25 ` dscao999 at hotmail dot com [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-66219-4-TWI7WDGiT3@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).