From: Yann Magnin <yann.magnin@epitech.eu>
To: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Building shared object file for an SH target
Date: Thu, 19 Mar 2020 15:25:40 +0000 [thread overview]
Message-ID: <VI1PR02MB4256DF8B8377A3340C720BFE96F40@VI1PR02MB4256.eurprd02.prod.outlook.com> (raw)
Hi everyone,
Recently I try to generate shared object files in SuperH-4 using a custom sh-elf-gcc (build options below) but the `-shared` flags seems to have no effect because the linker indicate `cannot find entry symbol start` and the generated file is of type `ELF 32-bit MSB executable, Renesas SH, version 1 (SYSV), statically linked, not stripped`.
I tried to compile 'gcc 9.3.0' and 'binutils 2.34.0' using '--enable-shared':
* ../gcc-9.3.0/configure --prefix=$HOME/opt/sh-elf-2.34-9.3.0 --target=sh3eb-elf --with-multilib-list=m3,m4-nofpu --enable-languages=c,c++ --enable-shared --without-headers --with-newlib --disable-nls --program-prefix=sh-elf-
* ../binutils-2.34/configure --prefix=$HOME/opt/sh-elf-2.34-9.3.0 --target=sh3eb-elf --enable-shared --with-multilib-list=m3,m4-nofpu --disable-nls --program-prefix=sh-elf-
But I have the same result.
I also tried with '--enable-host-shared' and nothing.
How can I do to enable shared file generation with gcc ?
Any insight would be deeply appreciated!
Cheers,
Yann
reply other threads:[~2020-03-19 15:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=VI1PR02MB4256DF8B8377A3340C720BFE96F40@VI1PR02MB4256.eurprd02.prod.outlook.com \
--to=yann.magnin@epitech.eu \
--cc=gcc-help@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: link
Be 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).