public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Building shared object file for an SH target
@ 2020-03-19 15:25 Yann Magnin
  0 siblings, 0 replies; only message in thread
From: Yann Magnin @ 2020-03-19 15:25 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-19 15:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-19 15:25 Building shared object file for an SH target Yann Magnin

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).