Commit Graph

1784 Commits

Author SHA1 Message Date
kamil
14e08b00f3 Deregister (o)vadvise from gdb & gdb.org: ppc/emul_netbsd
The (o)vadvise syscall is dummy since the beginning of NetBSD.

Sponsored by <The NetBSD Foundation>
2017-12-19 19:13:30 +00:00
kamil
c1e1c2ac76 gdb.old: Add missing */
Sponsored by <The NetBSD Foundation>
2017-12-19 09:01:24 +00:00
kamil
1241eefcf9 gdb & gdb.old: Forget about sstk in ppc/emul_netbsd.c
The sstk(2) syscall has not been implemented and will be removed.
2017-12-19 08:02:55 +00:00
christos
5a99a75ee4 Don't core dump when the window is too small
XXX: feed upstream
2017-12-17 17:49:04 +00:00
joerg
e378b48f30 Improve CFLAGS definition for clang. Use more tabs. 2017-12-13 21:52:55 +00:00
christos
dd3d2dc091 PR/52799: Martin Husemann: Correct sysctl args to find executable. 2017-12-10 05:36:25 +00:00
rin
6208ec6ac6 When forcing C++ mode for C sources, clang requires -Wno-deprecated.
Fix build with LLVM.

Thanks @a_rin for report on Twitter.
2017-12-08 14:19:47 +00:00
rin
7d5dcd6c09 Remove old leftover of migration from gnu/dist/gdb6. 2017-12-08 14:10:29 +00:00
rin
aca21209c7 Remove blank lines. 2017-12-08 14:07:58 +00:00
christos
53a6337cc4 regen hppa 2017-12-04 03:08:34 +00:00
joerg
92677a93f8 Don't override X87_ENABLE_ARITH. Since we default to long double
rounding, the default value is correct for us.
2017-12-02 23:05:52 +00:00
christos
3cc28a26d9 include nbsd-nat.h 2017-12-02 18:39:52 +00:00
christos
81a00b8a1a regen 2017-12-02 00:00:57 +00:00
christos
37d4245424 don't suspend other threads if we are resuming. 2017-12-01 22:22:40 +00:00
christos
0846ccb7dd Remove more FreeBSD code that we don't need and change some FreeBSD -> NetBSD 2017-12-01 22:20:44 +00:00
christos
a24bbe3e3b Back to stepping everyone. 2017-12-01 22:19:59 +00:00
christos
cda18e6671 get the debugging registers for the specific thread. 2017-12-01 22:15:17 +00:00
christos
e88cf2b79b Switch to FreeBSD's native implementation for threads. 2017-11-30 15:26:54 +00:00
christos
f7d2582dc8 Fix 'last argument of ptrace is the thread id' on NetBSD. 2017-11-30 00:13:29 +00:00
christos
e7c46019b7 missed one rename 2017-11-29 22:40:18 +00:00
christos
25202ef083 regen, and add more warn eliding to Makefile 2017-11-29 22:39:59 +00:00
christos
6c392f2969 we need popcount again 2017-11-29 22:39:26 +00:00
christos
9b2a55118a more files 2017-11-29 21:42:45 +00:00
christos
abb9530af0 avoid re-definition 2017-11-29 21:35:26 +00:00
christos
307650b5b5 need more files 2017-11-29 21:35:16 +00:00
christos
fee235007f make depend does not like multi-word compiler. 2017-11-29 21:22:36 +00:00
christos
f0decf0c14 mkdep does not like multi-word compiler. 2017-11-29 21:21:50 +00:00
christos
8b7331e524 regen and fix all archs (except coldfire) 2017-11-29 18:15:29 +00:00
christos
25acabf0b7 fixes for gdb-8.0.1 on x86_64 2017-11-29 03:58:17 +00:00
christos
7ea28c925e bring back all our foonbsd-{nat,tdep} files as foo-nbsd-{nat,tdep}. Account
for that in the config glue.
2017-11-29 03:35:15 +00:00
christos
06f8a908a2 Avoid building plural.c from plural.y. Since we now build with gnumake,
emptying the pattern rules is not enough.
2017-11-29 03:34:22 +00:00
christos
3b99ba0f56 merge 8.0.1, not working yet. 2017-11-28 22:04:52 +00:00
christos
796c32c94f Import gdb-8.0.1 2017-11-28 18:16:59 +00:00
christos
e5cb852c65 merge conflicts 2017-11-28 18:09:41 +00:00
christos
ed8eb4c2d4 Import HEAD of gdb-7.12 2017-11-28 17:51:23 +00:00
skrll
3f391d52fc Match hppa JEMALLOC_TINY_MIN_2POW 2017-11-16 13:54:42 +00:00
mrg
9d6d176649 merge mknative files from gcc.old back into gcc.
they're back to being the same again now.
2017-11-15 23:33:49 +00:00
mrg
0ace67202c ensure version.c gets rebuilt properly. 2017-11-15 07:47:10 +00:00
mrg
c91d24e196 sync with gcc.old. 2017-11-14 09:04:16 +00:00
mrg
9f4f6abc0f attempt to fix liblto_plugin build. on sparc it at least now
appears to have no missing symbols.  add xasprintf.c, xvasprintf.c,
and vprintf-support.c.

fix vprintf-support.c to include vprintf-support.h.
2017-11-14 08:52:20 +00:00
mrg
8cf273c725 from gcc.old:
>it's ${BUILDINCS} not {BUILDINCS}
2017-11-14 00:55:29 +00:00
mrg
cd95df3a39 regen for GCC 5.5. 2017-11-14 00:54:48 +00:00
mrg
64328a215c it's ${BUILDINCS} not {BUILDINCS} 2017-11-14 00:54:38 +00:00
mrg
05bf8f96a1 mknative-gcc for some GCC 5.5. c++config.h is wrong so far. 2017-11-13 19:24:32 +00:00
martin
c4d8205949 Fix what looks like a merge botch. 2017-11-13 11:49:16 +00:00
mrg
ea67e31f69 merge GCC 5.5.0 in gcc.old. 2017-11-13 08:05:16 +00:00
mrg
f6d92a9fbc import GCC 5.5 into gcc.old. 2017-11-13 07:46:18 +00:00
mrg
d011ddea5c regen for gcc 5.5. 2017-11-13 07:21:17 +00:00
mrg
0c98858fbf merge GCC 5.5.0. this does not include updated man/info pages (yet). 2017-11-12 00:36:44 +00:00
mrg
3f4ceed98f initial import of GCC 5.5.0. this fixes a very large number of PRs.
280 are listed here:
    https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=5.5
and this list is likely not complete, and not reproduced here.  the
only specific change in functionality is removal of x86 "pcommit"
instruction (which was apparently never implemented.)
2017-11-11 23:49:21 +00:00
kamil
e96e0a6e7b Build liblto_plugin.so with safe-ctype.c
This corrects linking attempt with GNU binutils GOLD (linker).

ld.gold: error: /usr/libexec/liblto_plugin.so: \
could not load plugin library: /usr/libexec/liblto_plugin.so: \
Undefined symbol "_sch_istable" (symnum = 12)

Keep the same minor for the previous recent bump.
2017-11-11 07:49:43 +00:00
kamil
636d66d904 Backport patch from gcc.old for liblto_plugin
Correct resolution of xstrerror(). Switch from -liberty (which has PIC
problems as a local library) to directly linking xstrerror.c with
liblto_plugin.

Fix in gcc.old by <christos>

PR 52674 by myself
2017-11-05 02:36:00 +00:00
christos
8d1bd5c1e5 undo previous; we can't link with libiberty because it is a private library
and not build as pic. Instead just bring in the xstrerror.c source from it.
2017-11-05 01:16:16 +00:00
kamil
97baba3441 Bump lib minor for liblto_plugin.so link with -liberty
PR 52674 by myself
2017-11-04 16:21:49 +00:00
kamil
25586f65d6 Link liblto_plugin with -liberty (gcc)
GCC passes liblto_plugin.so in the linker invocation (part of "gcc -v file.c"):

ld -plugin /usr/libexec/liblto_plugin.so -plugin-opt=/usr/libexec/lto-wrapper \
-plugin-opt=-fresolution=/var/tmp//ccxda9Ar.res \
-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc \
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s \
-plugin-opt=-pass-through=-lgcc --eh-frame-hdr -dc -dp -e _start \
-dynamic-linker /usr/libexec/ld.elf_so /usr/lib/crt0.o /usr/lib/crti.o \
/usr/lib/crtbegin.o /var/tmp//cc7A7mOK.o --as-needed -lgcc_s --no-as-needed \
-lgcc -lc --as-needed -lgcc_s --no-as-needed -lgcc /usr/lib/crtend.o \
/usr/lib/crtn.o

When attempting to use GNU GOLD, liblto_plugin.so cannot be used because it \
has missing symbol xstrerror:

ld: error: /usr/libexec/liblto_plugin.so: could not load plugin library: \
/usr/libexec/liblto_plugin.so: Undefined PLT symbol "xstrerror" (symnum = 38)

From Makefiles and sources inspection, liblto_plugin.so shall be linked with \
libiberty (-liberty), a utility GNU library for internal usage with helping \
functions.

PR 52674 by myself
2017-11-04 16:03:12 +00:00
kamil
e81e3afa16 Link liblto_plugin with -liberty (gcc.old)
GCC passes liblto_plugin.so in the linker invocation (part of "gcc -v file.c"):

ld -plugin /usr/libexec/liblto_plugin.so -plugin-opt=/usr/libexec/lto-wrapper \
-plugin-opt=-fresolution=/var/tmp//ccxda9Ar.res \
-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc \
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s \
-plugin-opt=-pass-through=-lgcc --eh-frame-hdr -dc -dp -e _start \
-dynamic-linker /usr/libexec/ld.elf_so /usr/lib/crt0.o /usr/lib/crti.o \
/usr/lib/crtbegin.o /var/tmp//cc7A7mOK.o --as-needed -lgcc_s --no-as-needed \
-lgcc -lc --as-needed -lgcc_s --no-as-needed -lgcc /usr/lib/crtend.o \
/usr/lib/crtn.o

When attempting to use GNU GOLD, liblto_plugin.so cannot be used because it \
has missing symbol xstrerror:

ld: error: /usr/libexec/liblto_plugin.so: could not load plugin library: \
/usr/libexec/liblto_plugin.so: Undefined PLT symbol "xstrerror" (symnum = 38)

From Makefiles and sources inspection, liblto_plugin.so shall be linked with \
libiberty (-liberty), a utility GNU library for internal usage with helping \
functions.

PR 52674 by myself
2017-11-04 15:59:16 +00:00
christos
5be17a4780 sync with gcc.old 2017-10-08 20:40:06 +00:00
joerg
322628b0a0 Don't try to rebuild gengtype-lex.c from yacc. 2017-10-08 11:08:55 +00:00
kre
5067e4eb0f Actually bump lib versions, to match bump in sets files. 2017-10-07 00:06:11 +00:00
christos
26057c7540 bump because of libstdc++ 2017-10-06 19:16:35 +00:00
christos
510540c911 re-run mknative to disable the libstdc++ "dual abi". Bump. 2017-10-05 23:46:34 +00:00
wiz
877c1e6101 Fix typo in comment. 2017-10-05 06:30:19 +00:00
christos
507caaad52 Add stdatomic.h 2017-10-04 23:43:23 +00:00
he
b7a909847c Replicate fix from the old gcc.old: alpha.d needs pass-instances.def. 2017-09-12 09:25:24 +00:00
mrg
26c43e3543 move the GMP_MACHINE_ARCH definition into external/lgpl3/gmp/Makefile.arch.
soon to be GMP 6 allows us to have only two arm copies.
2017-08-22 09:17:50 +00:00
mrg
bbf2be38c0 put the location of gmp/mpc/mpfr in a variable so we can .old them. 2017-08-04 01:18:39 +00:00
mrg
56cd2f0399 pass the target specific CPUFLAGS and CPPFLAGS for the .c.o rule.
should fix a problem rjs@ reported.
2017-08-03 22:01:29 +00:00
mrg
79ce5b417f remove unused files 2017-08-03 22:00:38 +00:00
maya
8340d18be5 Apply upstream patch:
Incorrect codegen from rdseed intrinsic use (CVE-2017-11671)

We should not expand call arguments in between flags reg setting and
flags reg using instructions, as it may expand with flags reg
clobbering insn (ADD in this case).

Attached patch moves expansion out of the link. Also, change
zero-extension to non-flags reg clobbering sequence in case we perform
zero-extension with and.

2017-03-25  Uros Bizjak
2017-07-28 22:24:27 +00:00
maya
317c1f1a2e Apply upstream patch:
Incorrect codegen from rdseed intrinsic use (CVE-2017-11671)

We should not expand call arguments in between flags reg setting and
flags reg using instructions, as it may expand with flags reg
clobbering insn (ADD in this case).

Attached patch moves expansion out of the link. Also, change
zero-extension to non-flags reg clobbering sequence in case we perform
zero-extension with and.

2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
2017-07-28 22:23:05 +00:00
he
f52ac36319 For alpha, generating alpha.d first needs pass-instances.def re-generated. 2017-07-27 16:05:15 +00:00
joerg
7c8897217a TLS relocations for PIE and non-PIE main executable work the same, so
apply the same relaxation rules and the same static binding rules.
2017-07-25 19:44:25 +00:00
mrg
be7137046e initialise some stack variables to zero so that later checking ensures
they are considered "unfound" instead of some random value.

part 1 in fixing the CI20 kernel build.  this one actually will cause
the build to fail, but it's outputting broken objects right now anyway.
part 2 coming up in the CI20 configuration itself.
2017-07-25 06:43:03 +00:00
mrg
7a0caf96a5 merge GCC 5.4 into gcc.old. 2017-07-23 01:10:50 +00:00
mrg
7d9adb1cf1 import the GCC 5.4 srcs from -current as gcc.old in preparation for GCC 6. 2017-07-23 01:04:23 +00:00
joerg
fc278ede3a One more missing check for DECL_INITIAL being non-NULL. 2017-07-22 20:52:52 +00:00
joerg
688d934e56 PR 51266, PR 52326: Fix GCC specs to always default to -shared-libgcc,
except on Sun2, which just uses plain -lgcc.
2017-07-19 13:10:28 +00:00
joerg
4df4cd4e92 Fix encoding of LSDA entries. .eh_frame references in non-PIC mode can
use plain pointers. For PIC, any references to global objects must be
indirect, but the .eh_frame entries themselve should be pcrel.
2017-07-18 18:02:37 +00:00
joerg
846a441fa1 Detect advance_loc support with readelf, not objdump. The latter is
broken in some situations before binutils 2.28.
2017-07-17 19:55:13 +00:00
joerg
8a8cb2911c Use read-only .eh_frame. 2017-07-17 19:53:50 +00:00
joerg
ef39c7e610 A const declaration with explicit section attribute should create a
read-only section, whether it is initialized or not.
2017-07-17 19:53:10 +00:00
joerg
05cc9c0cb6 Create references as absolute pointers internally for .cfi*.
Do not warn for anonymous relocations in read-only .eh_frame,
they will be turned into relative entries afterwards.
2017-07-17 19:50:23 +00:00
christos
6c406925bb fix the powerpc build, by undefining the EH_SPEC entry first. 2017-07-15 23:52:30 +00:00
joerg
c1a5bf052c Restore --eh-frame-hdr for static binaries. 2017-07-14 23:05:27 +00:00
joerg
a5c3ba3e65 Allocate enough memory. 2017-07-11 21:19:42 +00:00
joerg
e5678be828 Implement __cxa_thread_atexit and __cxa_thread_atexit_impl. This
functions are used for destructors of thread_local objects.

If a pending destructor exists, prevent unloading of shared objects.
Introduce __dl_cxa_refcount interface for this purpose. When the last
reference is gone and the object has been dlclose'd before, the
unloading is finalized.

Ideally, __cxa_thread_atexit_impl wouldn't exist, but libstdc++ insists
on providing __cxa_thread_atexit as direct wrapper without further
patching.
2017-07-11 15:21:31 +00:00
chs
3c2bb6eab4 copy the CTF section too, if there is one. 2017-07-06 02:34:00 +00:00
joerg
f2faadd888 Mark a few more things as not-for-clang. While the sanitizers would
likely build, there are ordering issues relative to the libc++ build
right now.
2017-06-29 18:52:23 +00:00
joerg
ff6447e3f3 Honor HOST_CXX. 2017-06-26 17:38:10 +00:00
mrg
781c4b6a03 native-gcc for all platforms (only m68000 has a real change.) 2017-06-17 17:12:03 +00:00
kamil
fc24321608 Don't include <sys/user.h> on NetBSD in GDB
This header in this context is freebsdism.
2017-06-15 23:46:30 +00:00
kamil
767ace0885 Detach <sys/user.h> from sanitizer_procmaps_netbsd.cc (GCC)
This header in this context is freebsdism.

Sponsored by <The NetBSD Foundation>
2017-06-14 12:16:27 +00:00
mrg
b0309df642 regen after new binutils 2017-06-08 19:21:54 +00:00
flxd
9c7eabb4c9 Fix PR port-vax/51761 as suggested by Paul Koning on port-vax list.
Installation (install.ram, -Os) on my VS4000 is possible without SCSI timeouts
again.
Other variable-length bit field instructions should be checked for correct
constraints, too!
2017-06-08 15:28:27 +00:00
christos
dd61a7a6c2 remove bogus indirect call for profiling (mcount) 2017-05-29 03:51:24 +00:00
sevan
ec28d4a50d Fix building GCC 5 with clang 4.0
Obtained from FreeBSD ports r432958
https://svnweb.freebsd.org/ports?view=revision&revision=432958
"doesn't compile with recent versions of libc++, because it attempts to redefine abort():
/usr/include/c++/v1/functional:1398:2: error: no member named 'fancy_abort' in namespace 'std::__1'; did you mean simply 'fancy_abort'?
        _VSTD::abort();
        ^~~~~~~
/usr/include/c++/v1/__config:383:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE"
2017-05-17 22:06:10 +00:00
christos
7ef1d3a265 Teach me about the NetBSD-CORE ELF AuxV note. 2017-03-29 15:28:42 +00:00
chs
7e30e94394 provide a common softfloat fenv implemenation and use it for softfloat builds.
restore ABI compatibility with previous releases for ieeefp.h on sh3.
add namespace.h protection for all the fenv interfaces.
use MKSOFTFLOAT on sh3 instead of assuming softfloat.
standardize on comparing MKSOFTFLOAT with "no".
remove the arm-specific softfloat fenv code (which also had several bugs).
fix logic errors in the arm hardfloat feraiseexcept() and feupdateenv().
2017-03-22 23:11:07 +00:00
christos
5978bc7047 need .WAIT before *san since they depend on libc++ 2017-03-07 16:26:37 +00:00
joerg
6fbd2a0be4 Switch from __ABICALLS__ to __mips_abicalls like upstream GCC does in
the generic MIPS target logic.
2017-02-25 21:16:50 +00:00
chs
1f54905796 revert rev 1.2 (disabling split wide types) because it's no longer necessary
after rev 1.6 of m68k.md (which itself reverted a local patch that hadn't
been necessary for over a decade... see gcc bugzilla 12792).
discussed with christos and confirmed no regressions with the atf tests.
2017-02-23 18:43:01 +00:00
rin
d362232877 sorry, fix comment... 2017-02-14 00:20:20 +00:00
rin
78470a5a42 PR port-vax/51967 GCC 5.4 aborts on vax due to SIGILL for cc1
As a workaround, compile dse.c with -O0.
2017-02-13 22:31:09 +00:00
kamil
77d313fc36 Detach libpthread_dbg(3) from gdb(1) and gdbtui (gdb.old)
libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

pthread_dbg(3) is going to be removed from the base distribution and moved
to pkgsrc.

Patch reviewed by <christos>

Sponsored by <The NetBSD Foundation>
2017-02-08 01:32:37 +00:00
kamil
e361313d33 Detach libpthread_dbg(3) from gdb(1) and gdbtui
libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

pthread_dbg(3) is going to be removed from the base distribution and moved
to pkgsrc.

Patch reviewed by <christos>

Sponsored by <The NetBSD Foundation>
2017-02-07 22:53:19 +00:00
sevan
cc576e1d8e Update supporting files for components which rely on autoconf to allow systems
introducing since release of software to be recognised. This should hopefully
allow the builds to progress a littles further on systems such as the POWER8
which features a little endian 64-bit PowerPC CPU identified as ppc64le.
2017-02-01 09:26:39 +00:00
christos
e145362bfe use the full attribute syntax 2017-01-17 12:49:26 +00:00
christos
0133d15da2 use the full attribute syntax. 2017-01-17 12:48:39 +00:00
christos
d3da06c622 elide psabi errors on i386 2017-01-15 21:27:38 +00:00
christos
8e7ebb8f8c Handle errors in system headers 2017-01-13 01:14:27 +00:00
christos
78df756bd3 sprinkle __unused 2017-01-12 19:21:09 +00:00
christos
73f4d05a56 revert for now; too many issues. 2017-01-12 19:10:00 +00:00
christos
d0c807d2c9 Our headers are clean, enable warnings caused by them. We want to know
about <ctype_macro>(char) usages.
2017-01-12 17:14:23 +00:00
skrll
3e2d39191a Fix merge botch. arm eabi targets now match properly and we get the
right defaults.
2017-01-11 14:13:05 +00:00
buhrow
d33b37e9a7 Fix problem which prevents cross building on NetBSD systems which predate
NetBSD-6 or non-NetBSD systems.  See discussion on port-arm for details.
2016-12-30 22:40:23 +00:00
kamil
60b1976a76 Revert introduction of FIXME_PR_51139
This change introduced ABI incompatible change with older versions shipped
on NetBSD. This back out code that is currently not working correctly due
to TLS-based std::call_once implementation in GNU libstdc++.

Error when starting gnuchash:

/usr/pkg/lib/libwebkitgtk-1.0.so.0: Undefined symbol "_ZSt15__once_callable" (symnum = 1705)

PR 51139

Reported by <wiz>
2016-12-24 15:48:26 +00:00
kamil
49e3a2363a Add a walkaround for TLS bug in libstdc++ exposed with std::call_once
Currently std::call_once with libstdc++ works only with static linking.
Disable code path using __thread types and introduce FIXME_PR_51139.
Problem discussed in PR 51139

Functional std::call_once is required in LLVM and LLDB codebase.

Example code to test std::call_once:
#include <iostream>
#include <thread>
#include <mutex>
#include <cstdlib>
std::once_flag flag;
int main(int argc, char **argv)
{
        std::call_once(flag, [](){ std::cout << "Simple example: called once\n"; });
        return EXIT_SUCCESS;
}

Sponsored by <The NetBSD Foundation>
2016-12-21 21:55:46 +00:00
rin
36532a0d5a PR port-powerpc/51366 kernel for powerpc/ibm4xx miscompiled by gcc >= 4.8.5
backport fix from upstream:

URL: https://gcc.gnu.org/viewcvs?rev=238789&root=gcc&view=rev
Log:
rs6000: Fix logic for when to emit .machine (PR71216)

The current logic determining whether to use .machine in the generated
asm code puts it there if the compiler is not configured with a default
target cpu, _or_ no -mcpu= was given on the command line.  It should
be "and" instead.

	PR target/71216
	* config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
	when to emit a ".machine" pseudo-op.

Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/rs6000/rs6000.c
2016-12-18 03:00:58 +00:00
rin
e31b62ddaa Skip the initial GP load in function prologue when inserting a breakpoint.
GNU ld for alpha is so clever that the redundant GP load in function
entrypoint is skipped. we must therefore skip initial GP loads; otherwise
breakpoints in function entrypoints can also be skipped.

Reported to upstream (Bug 20969):
  https://sourceware.org/bugzilla/show_bug.cgi?id=20969

ok martin
2016-12-15 10:01:16 +00:00
skrll
2e2322c9c0 Remove binutils.old as everything has switched. 2016-12-14 21:47:50 +00:00
mrg
899aca2e24 mknative, binutils 2.27, and ia64. 2016-12-12 19:15:15 +00:00
mrg
42a13a4db0 mknative-binutils 2.27 and hppa. 2016-12-11 02:13:34 +00:00
mrg
16e7be53ca regen binutils mknative files for binutils 2.27 on mipsel, mipseb and aarch64. 2016-12-11 01:53:43 +00:00
mrg
30b9303d3c regen mknative-binutils for ppc64 and binutils 2.27 2016-12-10 22:57:41 +00:00
mrg
de41f27e8a rebuild mkantive for ppc and binutils 2.27. 2016-12-10 21:33:53 +00:00
christos
a582531a1a finish arm regeneration 2016-12-08 19:35:10 +00:00
christos
37fdc90f90 regen sun2, earm, earmeb 2016-12-05 22:59:17 +00:00
christos
e33f4e7ec2 Regen sh3 2016-12-04 18:43:07 +00:00
christos
b1a05e3501 switch alpha/sparc/sparc64 to new binutils 2016-12-03 16:01:18 +00:00
christos
5b0871f5ea regen mips64 2016-12-03 00:40:47 +00:00
christos
787b0418af regen m68k 2016-12-02 17:51:07 +00:00
christos
811931c076 on NetBSD we don't have llvm_symbolizer, so try addr2line... 2016-12-01 18:20:25 +00:00
christos
0833d377e3 use the right sysctl to find the main binary name. We don't really need
this since our dl_iterate_phdr DTRT's for objmain, but...
2016-12-01 18:19:19 +00:00
christos
a6a34af0f6 regen for vax 2016-11-27 18:52:05 +00:00
mrg
38ac2f14f5 regen all gdb platforms. 2016-11-20 00:19:55 +00:00
mrg
98abf92201 s/#/$/ in a $NetBSD$ so it actually expands 2016-11-19 09:46:58 +00:00
skrll
0efd40303c mknative re-run 2016-11-19 09:10:33 +00:00
skrll
8d8621a4bd Real mknative re-run 2016-11-19 08:46:03 +00:00
skrll
56b555c863 Mark the alpha options use_secureplt as false... we don't do secure plt
on alpha (yet)
2016-11-19 07:54:19 +00:00
skrll
c7af765c8e Add in netbsd-core.lo for all arm/mips 2016-11-19 07:52:49 +00:00
skrll
f958ae60d4 (simulate) mknative re-run 2016-11-18 12:42:10 +00:00
skrll
3a5e17dcb9 Provide a generic nbsd_skip_solib_resolver and use it in alpha and arm.
Others should follow suit.

I even tested it.
2016-11-18 09:52:33 +00:00
joerg
c4414c4118 Merge r1.10 from the main in-tree binutils version:
More detailed error messages for text relocations on ppc code. Tested by
joerg@
2016-11-06 23:46:01 +00:00
joerg
d74117acef Merge r1.11 from the main in-tree binutils version:
Tail calls can use the PLT without a nop after the branch. Since the
callee won't return to the next instruction anyway, it wouldn't work
anyway.
2016-11-06 23:44:44 +00:00
christos
096c8b23c8 follow suit (add missing d) 2016-11-04 15:31:45 +00:00
martin
ed3eda7194 Add NODEBUGLIB here as well (sync with binutils directory) 2016-11-04 13:29:38 +00:00
joerg
374e459041 Tail calls can use the PLT without a nop after the branch. Since the
callee won't return to the next instruction anyway, it wouldn't work
anyway.
2016-11-04 00:19:32 +00:00
christos
f47de02583 More detailed error messages for text relocations on ppc code. Tested by joerg@ 2016-11-03 01:22:59 +00:00
christos
3d63ec494e need an = 2016-11-01 15:58:41 +00:00
christos
24c043b8d9 bump both (belatedly) 2016-11-01 14:02:15 +00:00
christos
ed77187f53 Add NODEBUGLIB, perhaps LIBISPRIVATE is better here? 2016-11-01 14:02:01 +00:00
martin
226fa8b9ee Add a skip_solib_resolver, from Rin Okuyama, fixes single stepping for
shared binaries.
2016-10-29 17:02:06 +00:00
christos
6ffca6ccd9 it might not be a breakpoint, so make the message what it actually is. 2016-10-27 14:30:55 +00:00
skrll
4b15477c73 .mt files are dead 2016-10-27 11:48:24 +00:00
christos
f5b8191dd4 regen x86 2016-10-26 20:39:27 +00:00
christos
944e10e55a restore the initfini array tests 2016-10-26 20:26:20 +00:00
christos
2f15a542cc merge conflicts, disable testsuite 2016-10-26 18:42:52 +00:00
christos
be8325a0f7 for next time 2016-10-26 18:00:56 +00:00
christos
c05b68c164 use the real top 2016-10-26 18:00:46 +00:00
christos
eb46678fb2 use our real top 2016-10-26 17:58:48 +00:00
christos
8cbf5cb7c4 Import binutils-2.27 minus the testsuites 2016-10-26 17:29:32 +00:00
christos
9b818ce2b0 merge conflicts 2016-10-26 17:08:37 +00:00
christos
8450a7c426 Import current binutils 2016-10-26 17:02:27 +00:00
christos
8d3ec8c9f8 Don't fail silently if we can't set a breakpoint 2016-10-24 21:22:33 +00:00
mrg
7b28f87c3c regen. 2016-10-24 03:02:48 +00:00
mrg
647468f389 regen after config.bfd fix. 2016-10-23 18:51:55 +00:00
skrll
f1c7b5d7e5 Sync with external/gpl3/binutils/dist/bfd/config.bfd for mips so we build
in the right vector set
2016-10-23 12:46:57 +00:00
skrll
628b30c419 Sync with external/gpl3/binutils/dist/bfd/config.bfd for arm so we build
in the right vector set
2016-10-23 12:43:01 +00:00
skrll
33576f34ff Trailing whitespace 2016-10-23 07:40:08 +00:00
skrll
074ac3ce32 PR toolchain/51557: gdb can't read core files
Register an iterate_over_regset_sections methods for armnbsd
2016-10-23 07:33:15 +00:00
christos
bbf41bf8ef use LIBGCC_MACHINE_ARCH for the compat build 2016-10-22 20:33:28 +00:00
skrll
a6174a4ba0 Add -lkvm for bsd-kvm.o 2016-10-22 14:57:50 +00:00
skrll
d2624817ef No need for corelow.o here now as it is in COMMON_OBS 2016-10-22 14:38:07 +00:00
skrll
4f5401ddf9 Fix HPPANBSD_SIZEOF_GREGS to match sizeof(struct reg) 2016-10-22 11:04:16 +00:00
christos
f6383fc60c regen and include the proper directory for x86_64 2016-10-22 03:55:03 +00:00
christos
6d0f30fd53 enable tf math (__float128) 2016-10-22 03:33:03 +00:00
christos
5300379ae6 Mark this -z nodelete, so that it does not get unloaded before other shared
libraries do, since they destructors need to still call millicode.
The problem this time was with /usr/pkg/bin/gdk-pixbuf-query-loaders
calling glib2's g_log...
2016-10-21 23:44:09 +00:00
mrg
e7aef7676b basic support for -static -pie: use -dynamic-linker.
doesn't work for all ports (reloc startup issues.)
2016-10-21 07:24:30 +00:00
mrg
a1169008f0 match aarch64* for the ldscripts generation. 2016-10-19 20:55:44 +00:00
mrg
31caae3a77 mknative-binutils for binutils 2.26 and arm64eb 2016-10-19 20:31:28 +00:00
mrg
b54003801f regen again after fixing the armeb-netbsdelf list.
evbarm-armeb builds again.
2016-10-19 19:10:33 +00:00
mrg
4a685cb277 fix the armeb target list. 2016-10-19 19:09:42 +00:00
mrg
8beef5983a regen to remove the accidental freebsd files 2016-10-19 19:02:38 +00:00
christos
bca50078b8 fix typo. 2016-10-18 12:52:32 +00:00
mrg
07ee0c7402 regen mknative for all ports and GCC 5.4 and -current. many ports
were using 5.3 data, and none of them had <stdalign.h>.
2016-10-18 01:32:56 +00:00
mrg
7b202c5d1e fix earmhf and earmhfeb builds. 2016-10-18 00:16:58 +00:00
mrg
c78a23b309 mknative-gdb for GDB 7.12 and coldfire/m68000. untested.
this completes our regularly scheduled mknative-gdb for all ports.
until next time enjoy your flight and have a nice day.
2016-10-17 18:44:43 +00:00
mrg
fbe48ae2ff remove unused files. 2016-10-17 18:32:33 +00:00
mrg
400d1a1689 mknative-gdb for GDB 7.12 and sh3*. untested. 2016-10-17 18:19:06 +00:00
mrg
e110ade75c mknative-gdb for GDB 7.12 for m68k and vax. untested. 2016-10-17 17:38:07 +00:00
mrg
15077f1b3c add some missing casts and make these build. 2016-10-17 17:37:44 +00:00
christos
a417a46e02 regen powerpc64 2016-10-17 14:02:20 +00:00
mrg
c1e10f7755 mknative-gdb for GDB 7.12 and i386 (untested) 2016-10-17 06:26:37 +00:00
mrg
fe0f2a5492 add missing i386bsd_supply_gregset() and i386bsd_collect_gregset() protos 2016-10-17 06:26:20 +00:00
mrg
3caff98623 mknative-gdb for GDB 7,12 and mips64*. untested (but builds.) 2016-10-17 04:15:35 +00:00
mrg
c9be6ee8d6 mknative-gdb for GDB 7.12 and alpha, mipsel and mipseb.
alpha and mipseb build (mipsel should), nothing is tested.
2016-10-16 08:23:05 +00:00
mrg
c03f037c58 define _KMEMUSER so that necessary things become visible always. 2016-10-16 05:12:20 +00:00
mrg
b0273061d2 move the GDB_MACHINE_ARCH setting into a separate file so tools can
access it.  modify it such that it's "arm" or "armeb" for all arm,
but only in new gdb, not gdb.old (avoid changing gdb.old as much
as possible now.)
2016-10-16 04:36:51 +00:00
mrg
47f5dba6de gdb only needs on arm and on armeb set, for all the 32 bit arm ports.
regen arm and armeb for gdb 7.12, and delete the rest.
2016-10-16 04:30:04 +00:00
maya
aa71315a69 this rule shouldn't be specific to little endian 2016-10-15 12:30:55 +00:00