christos
dc0f26b327
fix core dump handling. In essence remove all the custom code that dealt with
...
it, and use the gdb standard code.
2011-10-13 21:11:57 +00:00
matt
fb19a9fd0f
Regen.
2011-10-13 19:51:58 +00:00
christos
464319bdbd
Deal with core file initialization. The code is till wrong: all the core_ops
...
are unused and adding the core target does not work.
2011-10-13 16:00:37 +00:00
mrg
2c45186ad3
fix the paths to libsim.
2011-10-12 03:57:45 +00:00
dholland
0b9f907571
Improve the output of gcc when a subprogram gets a signal. When OOMing
...
it gets signal 9, which prints "Killed" -- that this is actually
signal 9 and not a generic message is never clear and causes people to
file PRs unnecessarily.
Suggested by followups to PR 44096.
2011-10-11 23:05:48 +00:00
christos
36efe015ea
make this compile.
2011-10-11 23:04:20 +00:00
christos
ac8695a91e
mknative m68k
2011-10-11 23:04:12 +00:00
joerg
3990e5f3ce
Disable format string validation with clang, it doesn't like gettext too
...
much.
2011-10-11 15:18:09 +00:00
joerg
e88c6d8036
Fix memset usage.
2011-10-11 15:13:08 +00:00
christos
c1a250a123
don't forget to subtract the offset; found by clang -Warray-bounds
2011-10-11 15:11:59 +00:00
christos
e9f7791ec5
fix some empty bodies.
2011-10-11 15:10:17 +00:00
mrg
58ea3a282e
force on -DPIC and re-apply the old .pico rules again.
...
i'd expect this to help hppa/sh3 builds, but it doesn't entirely.
it does get the related command lines much closer though.
2011-10-11 03:10:26 +00:00
christos
c6bacb34f2
regen arm
2011-10-10 23:14:48 +00:00
christos
7b0e9de91a
make this compile
2011-10-10 23:13:25 +00:00
christos
71f924834e
make alpha compile.
2011-10-10 22:18:08 +00:00
christos
fdf8f3b19f
mknative for sparc64 and alpha
2011-10-10 22:18:00 +00:00
christos
33c386138b
add missing file
2011-10-10 14:07:16 +00:00
chs
24dea3d577
in emit_push_insn(), ignore alignment if we don't have a type.
...
works around a gcc ICE on m68k. from mrg.
2011-10-09 21:17:33 +00:00
christos
e6afcfa146
fix and re-enable the texinfo targets
2011-10-09 18:17:53 +00:00
christos
cfa2879daa
add arm and hppa
2011-10-09 17:19:03 +00:00
christos
d824ea3fab
don't forget to set bindir.
2011-10-09 13:58:27 +00:00
christos
c8d7cb163f
fix powerpc support.
2011-10-09 02:07:24 +00:00
christos
1138a3c397
add powerpc support
2011-10-09 02:03:19 +00:00
christos
cee1519fd9
Add psim
2011-10-09 01:59:31 +00:00
christos
4ad34de5ac
Descent into gdb if we support it yet.
2011-10-08 21:52:15 +00:00
christos
eabd2ad9ba
- Don't use the unwind register get functions; you end up in an assertion
...
trying to unwind while unwinding; plus the sniffer is not allowed to unwind.
- Return the outer frame to terminate not the null frame.
This fixes the kernel track unwinder, so enable it.
2011-10-08 21:47:52 +00:00
christos
2851a42220
pass the thread id.
2011-10-08 21:43:35 +00:00
christos
6ee25ca9b9
use cleantags, instead of home grown copy.
2011-10-08 19:28:38 +00:00
christos
1d3d0af5a7
gnu style.
2011-10-07 23:24:14 +00:00
christos
b2a67858d2
Fix broken logic that created R_SPARC_64 relocations when -Bsymbolic.
...
When -Bsymbolic, all resolved symbols need to be created with relative
relocations. The dynamic linker depends on that because it only
knows how to perform relative relocations in the first pass to
relocate itself. This bug ended up creating R_SPARC_64 symbols for
12 relocation symbols in ld.elf_so, one of them dlopen(), which
ended up breaking things using dlopen(), most notably PAM.
2011-10-07 22:30:56 +00:00
christos
5cb8c25793
disable building the .info file
2011-10-07 20:22:59 +00:00
mrg
e8dd307ab6
remove NETBSD_LIBGCC_SPEC that is no longer necessary with ligcc
...
already doing pic code properly.
2011-10-07 09:16:27 +00:00
mrg
4a9d1308c3
obsolete libgcc_pic and friends. all libgcc's are supposed to be pic
...
for platforms with shlibs already (and are.)
this obsoletes our hacks for the libgcc specs to use libgcc_pic, and
fixes a couple of other issues reported to me directly.
2011-10-07 09:15:21 +00:00
christos
b7c50fc18d
enable thread debugging support.
2011-10-02 18:16:06 +00:00
christos
ce760d083b
Enable thread debugging support (not completely working yet).
2011-10-02 18:15:23 +00:00
christos
0ef3cdf303
- add objfile hook.
...
- constify.
- we cannot run things, so don't lie.
2011-10-02 18:14:24 +00:00
christos
bc3b670f7d
The arm .arm.atpcs section does not have segment information, so skip it.
2011-10-01 19:25:24 +00:00
macallan
c608916b4f
put -mfixloongson2f-btb back in the command line options list
2011-09-30 01:23:00 +00:00
christos
c236fd95c0
mknative for i386
2011-09-27 15:05:56 +00:00
christos
b642776f19
disable kernel trap frame crawling on i386 until it is fixed.
2011-09-27 15:04:19 +00:00
christos
d3f9240343
Provide regset functions and gut parts that the new debugging thread library
...
does not provide yet, so that we can link. As expected this does not work
yet.
2011-09-26 20:38:54 +00:00
christos
a6ca113b40
Resurrect old thread debugging code. Not hooked in, compiles.
2011-09-26 18:55:56 +00:00
christos
09d11d2f8f
use gstdint.h from libdecnumber.
2011-09-26 14:31:25 +00:00
mrg
5f7fcf61d3
mknative files for armeb / binutils 2.21.1a
2011-09-26 09:33:45 +00:00
mrg
8f6ce38a21
mknative files for arm / binutils 2.21.1a
...
(built with a hack to gas/config/tc-arm.c.)
2011-09-26 09:26:58 +00:00
christos
605c6d89d1
Build glue for x86_64. This is working gdb for amd64 minus kernel stacktrace
...
support. It is disabled for now because it breaks user program traces.
2011-09-26 03:02:44 +00:00
christos
3e93b50f82
Disable our custom stack unwinder for now. It is completely broken now because
...
gdb asserts when a frame returns 0. In previous versions of gdb, it just
printed 0, and stopped scanning. Our unwinder produces the same results in
both versions of gdb, i.e. it is broken and worse than the current gdb
default. We will need to revisit this for kernel debugging.
2011-09-26 02:35:33 +00:00
christos
5ecf4f1c7e
#define _KMEMUSER so that the struct lwp test works.
2011-09-25 20:26:04 +00:00
christos
b5a43e29a1
- fix missing argument
...
- expose struct lwp by #define _KMEMUSER
2011-09-25 20:25:08 +00:00
christos
2aaaf67e44
disable .y.c rule.
2011-09-25 20:23:51 +00:00
apb
1bc22d31ed
Disable rebuilding of elfedit.1
2011-09-25 19:40:36 +00:00
christos
a83ee50668
make amd64 compile.
2011-09-25 19:09:31 +00:00
christos
acd0381cfc
Apply the diffs that are relevant from our old gdb6 source tree.
2011-09-25 16:30:24 +00:00
chs
623ee27088
m68k needs fpgnulib.c just like m68000 does.
2011-09-25 13:34:16 +00:00
chs
a9fd72b06c
define PREFERRED_STACK_BOUNDARY to be the same as STACK_BOUNDARY,
...
gcc 4.5 wants them both.
2011-09-25 13:33:43 +00:00
chs
9f1b54794a
libgcc is big enough to need the equivalent of -fPIC here now.
2011-09-25 13:33:11 +00:00
chs
bdcbc7d337
don't try to define LINK_EH_SPEC if it's already set,
...
netbsd.h already set it to what we want.
2011-09-25 13:32:17 +00:00
mrg
aa6f331642
mknative files for vax / binutils 2.21.1a
2011-09-25 11:10:45 +00:00
mrg
95deb5109b
make this build again.
...
gimpy, please check the #if 0'd code that may or may not be useful? :)
2011-09-25 11:07:32 +00:00
mrg
175e62a9ff
mknative files for m68* / binutils 2.21.1a
2011-09-25 10:55:04 +00:00
mrg
60fbfc044d
mknative files for powerpc / binutils 2.21.1a
2011-09-25 10:27:01 +00:00
mrg
bd754ea449
mknative files for hppa / binutils 2.21.1a
2011-09-25 10:15:32 +00:00
mrg
2157e9516b
mknative files for alpha / binutils 2.21.1a
2011-09-25 10:09:30 +00:00
mrg
cb8d4d4a13
mknative files for mips64eb / binutils 2.21.1a
2011-09-25 10:02:45 +00:00
mrg
68c15c8ed6
mknative files for mips64el / binutils 2.21.1a
2011-09-25 09:52:59 +00:00
mrg
47221e6236
add OPTION_FIX_LOONGSON2F_BTB and OPTION_NO_FIX_LOONGSON2F_BTB
...
options back to the enum.
2011-09-25 09:44:54 +00:00
mrg
a84ac1a7a0
mknative files for mipsel / binutils 2.21.1a
2011-09-25 09:42:48 +00:00
mrg
0f3608f275
mknative files for mipseb / binutils 2.21.1a
2011-09-25 09:37:28 +00:00
mrg
68db3a43ca
mknative files for sh3eb / binutils 2.21.1a
2011-09-25 09:29:26 +00:00
mrg
34dc7e97c3
mknative files for sh3el / binutils 2.21.1a
2011-09-25 09:25:33 +00:00
mrg
88584aaf21
mknative-binutils for sparc64 / binutils 2.21.1a.
2011-09-25 08:01:41 +00:00
mrg
1a51c49807
mknative files for sparc / binutils 2.21.1a
2011-09-25 07:53:27 +00:00
mrg
7838ec379b
mknative-binutils for i386 / binutils 2.21.1a.
2011-09-25 06:48:52 +00:00
christos
32998b1cb8
Merge new binutils. Only x86_64 works now; the rest will need to run mknative
...
again (at least).
2011-09-25 04:32:33 +00:00
christos
31799520c4
from ftp.gnu.org
2011-09-24 22:40:46 +00:00
christos
be12b8bcaf
from ftp.gnu.org
2011-09-24 22:30:45 +00:00
christos
45548106ec
from ftp.gnu.org
2011-09-24 22:20:22 +00:00
christos
be9ac0ea6d
from ftp.gnu.org
2011-09-24 22:10:17 +00:00
christos
7dfc761b33
Add the rcs keyword chomper.
2011-09-24 20:52:37 +00:00
christos
7813712d29
make this compile.
2011-09-24 20:51:04 +00:00
christos
5af5d48181
fix stray rcsid files
2011-09-24 20:47:37 +00:00
christos
4e98e3e176
import 7.3.1
2011-09-24 19:57:51 +00:00
christos
98b9484c67
import 7.3.1
2011-09-24 19:47:50 +00:00
christos
473931cbb4
Initial revision
2011-09-24 19:47:49 +00:00
christos
597410b885
import 7.3.1
2011-09-24 19:41:43 +00:00
christos
00a6b36997
import 7.3.1
2011-09-24 19:41:36 +00:00
tron
b8b5c88370
Fix build with stack smash protection enabled.
2011-09-23 09:36:37 +00:00
mrg
8b0b8ab146
build and install libgomp, as needed by "cc -fopenmp", and its
...
suplimentary files like libgomp.spec and omp.h.
2011-09-23 06:47:54 +00:00
mrg
de7f28c14f
only install libgomp.spec for the native build. look in the archdir
...
for libgomp.spec.
XXX: FILES/FILESDIR isn't working here for me yet. no idea why.
2011-09-22 20:55:17 +00:00
mrg
23f1423382
regenerate.
2011-09-22 04:22:17 +00:00
mrg
e2bf07a38a
use GOMP_MACHINE_ARCH, so we can build compat libs.
2011-09-21 02:12:00 +00:00
mrg
53e8c72cbd
libgomp mknative-gcc files for everyone else.
2011-09-21 02:00:55 +00:00
mrg
ac21230aad
makefile to build libgomp, as needed by "gcc -fopenmp".
...
needs a full mknative-gcc run before it can be properly enabled.
2011-09-20 02:28:03 +00:00
mrg
5bf1411760
mknative-gcc files for libgomp.
2011-09-20 02:26:40 +00:00
apb
3cc8722d9f
Don't include .depend.* files during "make clean" or "make cleandir"
2011-09-10 19:26:18 +00:00
bouyer
90a13a6073
Hide instructions added by -mfix-loongson2f-jump in the same way as
...
-mfix-loongson2f-btb, to avoid a gas warning "macro expanded into
multiple instructions" (which cause GDIUM kernel build failure
as it's built with -Wa,-mfix-loongson2f-jump -Wa,--fatal-warnings).
2011-08-29 18:30:52 +00:00
bouyer
0c15c4be25
Add a fix-loongson2f-btb option to gas, from OpenBSD.
...
This works around a bug in the branch prediction logic of the
CPU which can cause a hard hang. The existing fix-loongson2f-jump
works around the same bug, but by 'fixing' the jump target to be within the
same 256MB region as the kernel. This will (silently) cause a jump
to the wrong address if the jump is intentionally to some other
region (e.g. a call to pmon).
fix-loongson2f-btb instead works around the issue by adding an explicit flush
of the branch target buffer (via a write to a cop0 register) before every
jump register instruction.
2011-08-27 13:19:39 +00:00
uwe
063d3e6570
Pull the fix for GCC Bug 50068 - Invalid memory access in incr_ticks_for_insn
...
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50068
http://gcc.gnu.org/viewcvs?view=revision&revision=177839
* config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
2011-08-24 21:25:01 +00:00
matt
ec53afa919
Add a -mtrap-zero-jump option for mips that causes a trap instruction to
...
fire before a jump to a zero or "near" zero address. This can't be used
with MIPS1 kernels since MIPS1 doesn't have a trap instruction (it will
be silently ignored).
2011-08-18 06:32:35 +00:00
matt
72dd554728
Regen (since mknative blew away _SOFT_FLOAT changes).
2011-08-17 18:33:03 +00:00
mrg
ea90e3d981
also copy -m and -f flags from the GCC headers.
...
fixes PR#45253. (i'm going to leave that bug open for now because i
want to re-work a bunch of the libgcc framework.)
2011-08-15 18:31:20 +00:00
mrg
12dc132b81
clean out some unused code.
2011-08-15 09:19:21 +00:00
joerg
78384c1939
Can't build libstdc++ and libsupc++ with clang since it depends on using
...
volatiles as initializers of non-volatile fields, void * arithmetic and
some new attributes for the unwinding.
2011-08-09 13:00:04 +00:00
joerg
d80abf5701
Disable -Wunused-value for clang, it triggers on the bcopy replacement.
2011-08-09 12:58:55 +00:00
joerg
402f76be16
Since cproj and friends are used, link explicitly against libm.
2011-08-09 12:56:41 +00:00
mrg
46d22e869d
re-run mknative for hppa.
2011-08-07 12:20:10 +00:00
mrg
c58b16c3fc
after all the recent fixes, let's call this "NetBSD nb2 20110806"
2011-08-07 11:41:50 +00:00
mrg
c37220dd3d
whoops, properly copy the old libgcc spec. fixes libGLU on sh3.
2011-08-07 00:07:15 +00:00
matt
acb3cf946c
Missing a diff for the loongson2 fixes
2011-08-03 17:54:52 +00:00
matt
c8f6ff28bb
Pull in change to support -m[no-]fix-loongson2f-{nop,jump}
2011-08-02 16:11:16 +00:00
matt
9117b7b37b
Don't define LINK_EH_SPEC if it's already defined.
2011-08-02 00:45:36 +00:00
matt
4564466a06
Don't define LINK_EH_SPEC if it's already defined (from netbsd*.h)
2011-07-31 03:43:33 +00:00
martin
62d7638bb2
We use the "iterate phdrs method for exception unwinding now, so
...
make sure to pass --eh-frame-hdr to get the GNU_EH_FRAME header
generated.
2011-07-23 15:22:26 +00:00
mrg
3f11e25c49
build GMP, MPFR and MPC as private libraries just for GCC. don't
...
install the headers or librarys into the system.
someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc. not convinced it is worth it.
2011-07-21 03:13:30 +00:00
mrg
7eaea50bea
regenerate.
2011-07-21 03:10:24 +00:00
mrg
9196b27585
add some missing dependancies. there are probably a bunch more make
...
hasn't spat at me yet.
2011-07-21 03:01:26 +00:00
mrg
9a4bfc2852
re-generate various files after dl_iterate_phdr has been enabled.
2011-07-20 00:53:53 +00:00
tron
b6fc69b436
Fix remaining SSP build issues if GCC 4.5 is used.
2011-07-19 15:59:01 +00:00
mrg
2a978aa626
merge the common CPPFLAGS and HOST_CPPFLAGS. put -DGENERATOR_FILE
...
into HOST_CPPFLAGS, and remove the hacky list of files to build
with it. this matches what the real GCC build does, and fixes build
problems seen on OSX.
2011-07-19 01:37:59 +00:00
drochner
63087a7ddd
let gcc-4.5 use dl_iterate_phdr (which has been present for a while)
...
for exception handling rather than register_frame_info -- this is
what other OSes are doing, and what is supposedly more efficient.
committed generated files for i386 only
2011-07-18 21:48:03 +00:00
matt
75e98e4690
Default to 128-bit long double. Next question is ieee or ibm long double.
2011-07-12 23:23:17 +00:00
matt
b82b5c51b9
Bring in gcc 4.5 changes. powerpc64 can at least build a compiler now.
2011-07-12 08:47:24 +00:00
mrg
bae714a51c
regenerate, now sun2 libgcc links with applications fine.
2011-07-11 08:25:09 +00:00
mrg
3e3f99ad94
make this look more like the (working) gcc 4.1 configuration, and make
...
this actually work on netbsd/sun2.
2011-07-11 08:23:48 +00:00
mrg
4292af252e
XXX: add a prototype for __cmpdf2() so this compiles with -Werror.
2011-07-11 08:23:16 +00:00
mrg
67e341bb50
use m68k/t-floatlib on netbsd m68* platforms.
2011-07-11 08:22:49 +00:00
mrg
fd2a48532a
force HAVE_AS_SPARC_GOTDATA_OP to false, since those relocs seem
...
busted with our binutils. now sparc64 seems to work fine.
2011-07-10 15:28:26 +00:00
mrg
ef65ebf1e0
add a hack for emips libgcc (32 bit mips with softfloat.)
2011-07-10 02:39:57 +00:00
mrg
44399259a7
regenerate to remove MASK_64BIT.
2011-07-09 14:59:16 +00:00
mrg
abfdaed3ef
take MASK_64BIT out of the default target flags.
...
how this did not break all sorts of stuff i don't know!
2011-07-09 14:58:34 +00:00
matt
c367154631
Get rid of the hack that limited long double to 64 bits. We support 128 bit
...
long doubles now.
2011-07-07 17:27:46 +00:00
mrg
9692f6d4a2
- un-obsolete a pair of files we want to remain installed (XXX i wonder
...
if a way to have "clean builds" not run "postinstall fix obsolete" in
the $DESTDIR so that these sorts of errors will appear as set list
errors instead of being skipped
- fix the list of headers to install for GCC 4.5, based upon the mknative
${G_EXTRA_HEADERS}. XXX move the location of G_EXTRA_HEADERS.
2011-07-07 08:46:20 +00:00
mrg
fc24f81836
apply a couple of (int) before r_type switch usage.
2011-07-07 07:47:11 +00:00
mrg
7335abb57a
add missed mknative-gcc hppa file
2011-07-07 05:58:10 +00:00
mrg
3eb93c2d5b
alpha and hppa mknative-gcc files.
2011-07-07 02:07:31 +00:00
mrg
1307b14960
add ${G_LIB2ADD:H:O:u} to the .PATH to find all headers
2011-07-07 01:27:47 +00:00
mrg
3884174ae9
add hppa-netbsd support.
2011-07-07 01:27:30 +00:00
mrg
55bcf9d074
cast to int as the fake relocs are not in enum elf_ppc_reloc_type, and
...
GCC 4.5 complains about values not in the enum as part of a switch block.
2011-07-06 09:01:35 +00:00
mrg
a6aacda2c0
fix update build break on sh3.
2011-07-06 01:18:32 +00:00
mrg
4369a0fb72
fix the ordering of gmp, mpfr and mpc libraries. add to DPLIB.
2011-07-05 08:36:17 +00:00
mrg
4c9a9726fc
oops, put back _arm_fixunssfsi into arm libgcc.
2011-07-04 22:44:55 +00:00
mrg
5fb2e37596
don't use libgcc softfloat stuff now that it is in our libc. regenerate.
2011-07-04 12:54:24 +00:00
mrg
900aee4765
regenerate
2011-07-04 12:01:56 +00:00
mrg
4384878e5a
regenerate the m68* descriptions.
2011-07-03 16:14:36 +00:00
mrg
1f114dece4
netbsd needs __floatundisf; make it so. (should we have this elsewhere?)
2011-07-03 15:34:08 +00:00
mrg
6976072ef9
add missed generated file.
2011-07-03 14:42:13 +00:00
mrg
748830d10d
various (re-)generations. most of these sort of entirely work now.
2011-07-03 14:41:46 +00:00
mrg
676741fbe4
avoid passing -I$DESTDIR/usr/include to the $HOST_CC.
2011-07-03 14:09:57 +00:00
mrg
786cadb243
undef DRIVER_SELF_SPECS before defining it.
...
also, insert BASE_DRIVER_SELF_SPECS into DRIVER_SELF_SPECS.
2011-07-03 13:06:36 +00:00
mrg
27ba937d04
for mips, MASK_SOFT_FLOAT has become MASK_SOFT_FLOAT_ABI.
2011-07-03 13:05:19 +00:00