Commit Graph

1372 Commits

Author SHA1 Message Date
thorpej
1268b2dbc5 Add an x86_initialize_trampoline() function, similar to GCC 3.3,
change INITIALIZE_TRAMPOLINE() to use it, and apply the following
patch to it (which I have already submitted to GCC 3.3):

	* config/i386/i386.c (x86_initialize_trampoline): Emit a call
	to __enable_execute_stack with the address of the trampoline
	if TRANSFER_FROM_TRAMPOLINE is defined.

Define a TRANSFER_FROM_TRAMPOLINE suitable for NetBSD targets, to enable
stack execution on target machines which can separate exec permissions for
a region:

	* config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Define.
	* config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Define
	as NETBSD_ENABLE_EXECUTE_STACK.
	* config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
	* config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
	* config/sparc/netbsd-elf-common.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
	* config/sparc/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.

(A similar patch will be submitted to GCC 3.3.)
2002-10-18 16:23:47 +00:00
thorpej
00b192ce18 Bring in the following fix from gcc-current:
2002-10-17  Jason Thorpe  <thorpej@wasabisystems.com>

        * config/alpha/alpha.c (alpha_initialize_trampoline): Use
        tramp, not addr, to pass the trampoline address to
        __enable_execute_stack.

Otherwise, incorrect behavior would result if the trampoline happend
to stradle a page boundary.
2002-10-17 21:01:03 +00:00
enami
9fdb1e7ba1 Restore other symlink attributes. 2002-10-13 22:58:55 +00:00
agc
84c3d85401 If we're going to rely on a pre-generated getdate.c, we might as well rely
on one generated with the correct functionality inside it.
2002-10-11 08:58:44 +00:00
itojun
e076df538c seemingly more correct ".." patch by Solar Designer <solar@openwall.com>,
from bugtraq posting
2002-10-09 19:58:35 +00:00
itojun
9ad5cf147a sort 2002-10-09 19:54:05 +00:00
itojun
05b137baea allow --unbzip2 for backward compat
-y is not allowed as -y is reserved by GNU tar camp, it seems.
2002-10-09 19:53:25 +00:00
itojun
1130454b1c bring in --fast-read code from freebsd. 2002-10-09 19:28:14 +00:00
itojun
caaeaa46d8 patch from redhat rpm - check st_mode earlier 2002-10-09 16:40:21 +00:00
itojun
99ba27c717 vide --fast-read (no-op) 2002-10-09 16:23:27 +00:00
itojun
6dee53867d --norecurse and --unlink for backward compat 2002-10-09 12:01:29 +00:00
itojun
c873f2dfba dot-dot security fix, from redhat tar-1.13.25-1.6.src.rpm 2002-10-09 12:01:11 +00:00
itojun
fab68d14ac GNU tar 1.13.25 from alpha.gnu.org 2002-10-09 10:09:12 +00:00
itojun
29ef0d0d98 more strict checking on command invocation.
http://www.sendmail.org/smrsh.adv.txt, NetBSD PR 18516
2002-10-03 03:31:46 +00:00
wiz
12d694f3c4 Fix lots of typos. Some spotted by Adrian Mrva. 2002-10-02 15:39:09 +00:00
wiz
0cddcd9152 interpreted instead of intepreted. By Adrian Mrva. 2002-10-02 11:12:41 +00:00
wiz
659da00975 hve -> have. 2002-10-02 10:00:53 +00:00
thorpej
cde0a5d6aa __mcount uses jsb linkage, so there is no need to skip the (non-existent)
register save mask.  Profiling now works.

Also, use asm_fprintf() in FUNCTION_PROFILER.
2002-10-02 00:50:24 +00:00
itojun
c3cbda0efb move mbone tools out of basesrc, as they use part of mrouted 2002-10-01 03:50:07 +00:00
itojun
d0a9c54d7d latest license terms, via openbsd 2002-10-01 03:41:13 +00:00
itojun
9bbfbbb676 move mrouted out of basesrc, as it carries non-BSD license.
agreed w/ core.
2002-10-01 03:30:50 +00:00
thorpej
e870e0c546 Pick up the following change from binutils-current:
2002-09-28  Jason Thorpe  <thorpej@wasabisystems.com>

        * elf32-vax.c (elf_vax_size_dynamic_section): Don't strip
        .got sections.
2002-09-28 23:19:01 +00:00
wiz
398c2e6b26 Change argument handling to be like in groff-1.18, thus avoiding
a possible buffer overflow.
2002-09-27 15:05:11 +00:00
mycroft
b06a300a8a Fix a bug WRT -vomit-frame-pointer -- use_return_insn() must return false if
we saved the GOT pointer register.
Note: This is already fixed in the GCC 3 sources, but GCC 3 uses a different
condition to determine whether to save and restore the register, so the patch
cannot be the same.
2002-09-26 14:21:39 +00:00
mycroft
2468728dc8 Add missing parens that caused PLT slots >=32768 to jump to the wrong place. 2002-09-25 20:05:14 +00:00
thorpej
914a9c522b -D__STRONGARM__ for -mcpu=strongarm* 2002-09-21 00:26:47 +00:00
thorpej
0604df808f Do -D__XSCALE__ -D__ARM_ARCH_5TE__ for -march=xscale, as well, as
GCC 3.x does.
2002-09-21 00:19:30 +00:00
rearnsha
efc53cb5f7 Pull up the following patch from FSF GCC (fixes aborts when compiling
large functions for ARMv4):
Fri Nov 12 13:31:54 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
* config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Treat QImode
addresses the same way GO_IF_LEGITIMATE_INDEX does.
2002-09-19 21:52:29 +00:00
toshii
0a4b948848 Make sure to write back correct FP state. Fixes port-i386/17927. 2002-09-17 07:05:09 +00:00
thorpej
263d19930b Remove binutils 2.9. 2002-09-16 19:23:29 +00:00
thorpej
0f9c63ed39 Remove binutils 2.9. 2002-09-16 18:41:54 +00:00
thorpej
39c9c4310b Delete bintuils 2.9. 2002-09-16 18:13:05 +00:00
thorpej
e795439f84 Delete bintuils 2.9. 2002-09-16 17:59:12 +00:00
thorpej
2a57f8214b Remove gdb-4.17. 2002-09-16 17:42:22 +00:00
thorpej
e2ba73e2b5 Remove gdb-4.17. 2002-09-16 17:32:21 +00:00
thorpej
c07fb42b05 Remove gdb-4.17. 2002-09-16 17:22:20 +00:00
thorpej
f408d84a70 Remove the old egcs compiler. 2002-09-16 17:12:08 +00:00
thorpej
1bdb20e71b Remove the old egcs compiler. 2002-09-16 16:53:47 +00:00
thorpej
0b58bd1716 Remove the old egcs compiler. 2002-09-16 16:50:59 +00:00
thorpej
88edc7e11d Remove the old egcs compiler. 2002-09-16 16:40:58 +00:00
thorpej
f6abb51010 Remove the old egcs compiler. 2002-09-16 16:39:52 +00:00
thorpej
089852526d Remove files used by the egcs/bintutils 2.9 toolchain. 2002-09-16 16:36:51 +00:00
matt
25c3b57cd5 Don't emit R_VAX_GLOB_DAT for symbolic links. Eliminate all
local_got_offset cruft that's was still there.  Change the way
got_entries were assigned.  Now do it in elf_vax_size_dynamic_sections.
Add a routine elf_vax_instantiate_got_entries which assigns space in
the GOT or changes to normal PC32 references for static or symbolic links.
2002-09-12 17:51:33 +00:00
lukem
5d2cdf0811 Add missing "echo", as pointed out by Havard Eidnes <he@netbsd.org>
in PR [bin/18155].  (Whilst this fix needs to be fed back to Wietse Venema,
there's no reason not to fix it locally...)
2002-09-06 05:36:14 +00:00
thorpej
4c30492b6c * Rename ARM_FLAG_ATPCS_STACK_ALIGN to ARM_FLAG_ATPCS.
* Rename TARGET_ATPCS_STACK_ALIGN to TARGET_ATPCS.
* Move APTCS aggregate return rules to arm_return_in_memory(), conditional
  on TARGET_ATPCS, and make it also return true for variable-sized aggregates.
2002-08-28 17:33:54 +00:00
mycroft
c38b03a8c7 Fix SELECT_SECTION() so that C++ run-time type info constructors do not go in
.rodata on PIC systems, which was causing text relocations (and associated
performance loss).
2002-08-28 14:05:58 +00:00
nathanw
a7a8c9a009 Not for the trunk yet. 2002-08-28 00:00:57 +00:00
nathanw
0e972f7cec Support for debugging threaded programs, with libpthread and libpthread_dbg. 2002-08-27 23:56:43 +00:00
matt
e38f37f289 Make sure mips targets build properly on 64bit hosts. 2002-08-24 16:50:10 +00:00
thorpej
97f9d76ce8 arm.c, arm.h:
* Declare arm_arch5 and arm_arch5e.  Set arm_arch5 for if -mcpu=arm10tdmi,
  -mcpu=arm1020t, -mcpu=xscale, -march=armv5, -march=armv5e, -march=armv5te.
  Set arm_arch5e for -mcpu=xscale, -march=armv5e, -march=armv5te.

arm.md:

* Define the "clz" insn for arm_arch5.
* Define an "ffssi2" expander for arm_arch5 which uses "clz".
2002-08-21 01:27:14 +00:00