* [parisc-linux] libgcc
@ 2000-02-21 22:34 willy
2000-02-22 15:12 ` John David Anglin
0 siblings, 1 reply; 2+ messages in thread
From: willy @ 2000-02-21 22:34 UTC (permalink / raw)
To: parisc-linux
I've committed some changes which should allow gcc to build libgcc.a.
Compilation stops when trying to test libgcc:
Testing libgcc1. Ignore linker warning messages.
/mnt/home/willy/cvs/gcc-build/gcc/xgcc -B/mnt/home/willy/cvs/gcc-build/gcc/ -B/home/willy/gcc/hppa1.1-linux/bin/ -I/home/willy/gcc/hppa1.1-linux/include -DCROSS_COMPILE -DIN_GCC -DMULTIBYTE_CHARS=1 -g -O2 -I./include libgcc1-test.o -o libgcc1-test \
-nostartfiles -nostdlib `/mnt/home/willy/cvs/gcc-build/gcc/xgcc -B/mnt/home/willy/cvs/gcc-build/gcc/ -B/home/willy/gcc/hppa1.1-linux/bin/ -I/home/willy/gcc/hppa1.1-linux/include --print-libgcc-file-name`
libgcc1-test.o: In function `main_without__main':
/mnt/home/willy/cvs/gcc-build/gcc/../../gcc/gcc/libgcc1-test.c:20: undefined reference to `$global$'
collect2: ld returned 1 exit status
I don't see $global$ defined anywhere. Is this something which ld should
be fixing-up and isn't?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [parisc-linux] libgcc
2000-02-21 22:34 [parisc-linux] libgcc willy
@ 2000-02-22 15:12 ` John David Anglin
0 siblings, 0 replies; 2+ messages in thread
From: John David Anglin @ 2000-02-22 15:12 UTC (permalink / raw)
To: willy; +Cc: parisc-linux
Yes, the HP loader defines this symbol. It is used to access global
symbols. If you are using ELF (GNU ld), this may not be defined. I few
months ago I hacked the milli library to add this to libgcc.a. However,
it really should be defined by the linker.
Dave
>
>
> I've committed some changes which should allow gcc to build libgcc.a.
> Compilation stops when trying to test libgcc:
>
> Testing libgcc1. Ignore linker warning messages.
> /mnt/home/willy/cvs/gcc-build/gcc/xgcc -B/mnt/home/willy/cvs/gcc-build/gcc/ -B/home/willy/gcc/hppa1.1-linux/bin/ -I/home/willy/gcc/hppa1.1-linux/include -DCROSS_COMPILE -DIN_GCC -DMULTIBYTE_CHARS=1 -g -O2 -I./include libgcc1-test.o -o libgcc1-test \
> -nostartfiles -nostdlib `/mnt/home/willy/cvs/gcc-build/gcc/xgcc -B/mnt/home/willy/cvs/gcc-build/gcc/ -B/home/willy/gcc/hppa1.1-linux/bin/ -I/home/willy/gcc/hppa1.1-linux/include --print-libgcc-file-name`
> libgcc1-test.o: In function `main_without__main':
> /mnt/home/willy/cvs/gcc-build/gcc/../../gcc/gcc/libgcc1-test.c:20: undefined reference to `$global$'
> collect2: ld returned 1 exit status
>
> I don't see $global$ defined anywhere. Is this something which ld should
> be fixing-up and isn't?
>
> ---------------------------------------------------------------------------
> To unsubscribe: send e-mail to parisc-linux-request@thepuffingroup.com with
> `unsubscribe' as the subject.
>
>
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-02-22 16:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-21 22:34 [parisc-linux] libgcc willy
2000-02-22 15:12 ` John David Anglin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox