Weird.
I'm currently in the middle of some PC maintenance (scrubbing
everything and installing a clean system),
but I'll try to look into it as soon as possible.

-- jzr

On Tue, 15 Jan 2019 at 11:09, Jiri Svoboda <jirik.svob...@seznam.cz> wrote:
>
> Hi Jzr,
>
> while working on dynamic linking support for ppc32, I soon ran into a problem 
> with linking libc.so.0.0 that I am scratching my head about:
>
> /usr/local/cross/bin/ppc-helenos-gcc -D__BE__ -nostdlib -mcpu=powerpc 
> -mhard-float -m32 -std=gnu11 -isystem ../../lib/c/include -isystem 
> ../../lib/c/arch/ppc32/include -isystem ../../../abi/arch/ppc32/include 
> -isystem ../../../abi/include -Iinclude -I.  -imacros ../../../config.h 
> -D_HELENOS_SOURCE -fexec-charset=UTF-8 -finput-charset=UTF-8 -fno-common 
> -fdebug-prefix-map=/data/helenos/dev/dlppc32=. -O3 -ffunction-sections 
> -fno-builtin-strftime -pipe -Wall -Wextra -Wno-unused-parameter 
> -Wmissing-prototypes -Wwrite-strings -Werror-implicit-function-declaration 
> -Wsystem-headers -Wunknown-pragmas -Werror -Wno-nonnull-compare 
> -Wno-clobbered -Wl,--fatal-warnings,--warn-common -Wl,--gc-sections -shared 
> -Wl,-soname,libc.so.0 -Wl,--no-undefined,--no-allow-shlib-undefined  
> -Wl,-Map,libc.so.0.0.map -o libc.so.0.0 -Wl,--whole-archive libc.la 
> -Wl,--no-whole-archive    -lgcc
> /usr/local/cross/lib/gcc/ppc-helenos/8.2.0/../../../../ppc-helenos/bin/ld: 
> warning: cannot find entry symbol _start; defaulting to 0000000001800074
> collect2: error: ld returned 1 exit status
> make: *** [../../Makefile.common:384: libc.so.0.0] Error 1
>
> It looks like it's trying to create an executable instead of a shared 
> library. I tried to tinker with the command-line arguments, e.g. adding -fPIC 
> in addition to -shared to the link stage, but with no success. Could this be 
> related to our custom ppc-helenos GCC target?
>
> If you'd like to try it out, please see my workspace:
> https://github.com/jxsvoboda/helenos
>
> Thanks,
> Jiri
>

_______________________________________________
HelenOS-devel mailing list
HelenOS-devel@lists.modry.cz
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to