public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: bootstrap/3922: sparc-elf embedded target makes UNIX calls
@ 2002-06-25 12:48 davem
0 siblings, 0 replies; 5+ messages in thread
From: davem @ 2002-06-25 12:48 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, joel, nobody
Synopsis: sparc-elf embedded target makes UNIX calls
State-Changed-From-To: open->analyzed
State-Changed-By: davem
State-Changed-When: Tue Jun 25 12:47:03 2002
State-Changed-Why:
It gets it from the trampoline stack execute protection
code, ie. the macro sol2.h:TRANSFER_FROM_TRAMPOLINE
I've always been mystified why the embedded targets
use the Solaris headers. They either have to start
using their own embedded headers or somehow
conditionalize TRANSFER_FROM_TRAMPOLINE with a suitable
ifdef that will match on the embedded Sparc targets.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3922
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: bootstrap/3922: [sparc-elf] embedded target makes UNIX calls
@ 2003-04-30 21:43 bangerth
0 siblings, 0 replies; 5+ messages in thread
From: bangerth @ 2003-04-30 21:43 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, joel, nobody
Synopsis: [sparc-elf] embedded target makes UNIX calls
State-Changed-From-To: feedback->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Apr 30 21:43:32 2003
State-Changed-Why:
Shouldn't be in feedback state
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3922
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: bootstrap/3922: sparc-elf embedded target makes UNIX calls
@ 2003-01-31 21:15 joel
0 siblings, 0 replies; 5+ messages in thread
From: joel @ 2003-01-31 21:15 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, joel, nobody
Synopsis: sparc-elf embedded target makes UNIX calls
State-Changed-From-To: analyzed->feedback
State-Changed-By: joel
State-Changed-When: Fri Jan 31 21:15:51 2003
State-Changed-Why:
Still broken on 3.2.2 20030130 (prerelease)
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3922
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: bootstrap/3922: sparc-elf embedded target makes UNIX calls
@ 2002-06-25 13:16 Joel Sherrill
0 siblings, 0 replies; 5+ messages in thread
From: Joel Sherrill @ 2002-06-25 13:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR bootstrap/3922; it has been noted by GNATS.
From: Joel Sherrill <joel.sherrill@OARcorp.com>
To: davem@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: bootstrap/3922: sparc-elf embedded target makes UNIX calls
Date: Tue, 25 Jun 2002 14:52:38 -0500
davem@gcc.gnu.org wrote:
>
> Synopsis: sparc-elf embedded target makes UNIX calls
>
> State-Changed-From-To: open->analyzed
> State-Changed-By: davem
> State-Changed-When: Tue Jun 25 12:47:03 2002
> State-Changed-Why:
> It gets it from the trampoline stack execute protection
> code, ie. the macro sol2.h:TRANSFER_FROM_TRAMPOLINE
>
> I've always been mystified why the embedded targets
> use the Solaris headers. They either have to start
> using their own embedded headers or somehow
> conditionalize TRANSFER_FROM_TRAMPOLINE with a suitable
> ifdef that will match on the embedded Sparc targets.
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3922
FWIW newlib prototypes the missing routines and
RTEMS includes stubs for all the UNIX routines that
are sufficient to make the linkage happy. If anyone
cares, I can provide them and maybe they can go in
newlib. But someone more knowledgeable about
sparc-elf (not sparc-rtems) would have to speak.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
^ permalink raw reply [flat|nested] 5+ messages in thread
* bootstrap/3922: sparc-elf embedded target makes UNIX calls
@ 2001-08-03 7:26 joel
0 siblings, 0 replies; 5+ messages in thread
From: joel @ 2001-08-03 7:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 3922
>Category: bootstrap
>Synopsis: sparc-elf embedded target makes UNIX calls
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 03 07:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: joel@gcc.gnu.org
>Release: gcc-30-cvs checked out on 20010802
>Organization:
>Environment:
GNU/Linux RedHat 6.2
>Description:
Embedded targets should not have to provide sysconf(),
getpagesize(), or mprotect(). This appears to be responsible
for 40 test failures.
Targetting sparc-elf some tests fail to link like this:
spawn /usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/xgcc -B/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/ /usr3/ftp_archive/gnu/gcc/ss/b3/gcc-30-cvs/gcc/testsuite/gcc.c-torture/execute/20000822-1.c testglue.o -w -O0 -I/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/sparc-elf//newlib/targ-include -I/usr3/ftp_archive/gnu/gcc/ss/b3/gcc-30-cvs/newlib/libc/include -nostdlib -nostartfiles -B/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/sparc-elf//libgloss/sparc/ -L/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/sparc-elf//libgloss/sparc -L/usr3/ftp_archive/gnu/gcc/ss/b3/gcc-30-cvs/libgloss/sparc -B/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/sparc-elf//newlib/ -L/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/sparc-elf//newlib -Wl,-wrap,exit -Wl,-wrap,main -Wl,-wrap,abort -lm -Telfsim.ld -o /usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/testsuite/20000822-1.x0 ^M
/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/libgcc.a(_trampoline.o): In function `check_enabling':^M
/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/../../gcc-30-cvs/gcc/libgcc2.c(.text+0x4): undefined reference to `sysconf'^M
/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/libgcc.a(_trampoline.o): In function `__enable_execute_stack':^M
/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/../../gcc-30-cvs/gcc/libgcc2.c(.text+0x40): undefined reference to `getpagesize'^M
/usr3/ftp_archive/gnu/gcc/ss/b3/b-sparc-elf/gcc/../../gcc-30-cvs/gcc/libgcc2.c(.text+0x64): undefined reference to `mprotect'^M
collect2: ld returned 1 exit status^M
compiler exited with status 1
>How-To-Repeat:
try to compile at least the test indicated above.
>Fix:
I don't know how the embedded sparc-elf ends up using the
trampoline code in sol2.h which is where these references
appear to come from.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-04-30 21:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-25 12:48 bootstrap/3922: sparc-elf embedded target makes UNIX calls davem
-- strict thread matches above, loose matches on Subject: below --
2003-04-30 21:43 bootstrap/3922: [sparc-elf] " bangerth
2003-01-31 21:15 bootstrap/3922: sparc-elf " joel
2002-06-25 13:16 Joel Sherrill
2001-08-03 7:26 joel
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).