christos
88c1089d96
Bring in 2 patches from binutils:
...
From Alan Modra: Wed, 3 Jul 2013 11:51:56 +0930: powerpc64 call stubs:
This brings powerpc64 ld in line with gold regarding calls allowed to
go via a plt call stub or toc-adjusting stub without a following nop.
A long time ago ld allowed tail calls, but this is wrong because we'll
return to the caller's caller with the wrong toc pointer. I fixed
that for shared libraries but allowed tail calls in an executable for
some reason. Probably just muddy thinking on my part, because there's
no difference between an executable and a shared library regarding the
need to restore the toc pointer. Perhaps it was because some testcase
failed, most likely due to the g++ issue I comment on in the patch.
From Alan Modra: 29 Aug 2014 01:22:29 +0000: PowerPC64 call lacks nop error:
Enough people accidentally or otherwise use -mcmodel=small then wonder
why a call that is local is behaving as if it is going via the PLT.
* elf64-ppc.c (ppc64_elf_relocate_section): Report a different
error for calls via a toc adjusting stub without a nop.
2015-01-02 19:50:02 +00:00
dennis
298eb8b514
Apply a fix, extracted from the UCB RISC-V gcc sources, for the (known)
...
problems with compiling atomics for the riscv64 target with gcc. Remove
the now-unneeded workarounds for the 2 files in libasan that were formerly
failing to compile with the optimizer turned on.
2014-12-22 21:15:48 +00:00
skrll
6948cee7e0
Allow i386 binary debugging on amd64 hosts.
2014-12-15 13:43:24 +00:00
christos
0c6a515324
Allow i386 binary debugging on amd64 hosts.
...
XXX: This should be done in mknative but how? Matt?
2014-12-14 19:59:52 +00:00
christos
977e434ff6
When debugging 32 bit binaries on a 64 bit arch in NetBSD the dynamic
...
linker magically converts the dynamic linker name to ld.elf_so-<32bitarch>
like ld.elf_so-i386. We do the same magic here.
2014-12-14 19:58:06 +00:00
christos
f890372b86
- Add -f to allow processing non-plain files.
...
- Align NetBSD note printing properly
- Add handling of "PaX" notes correctly. Perhaps we should rename them
to "NetBSD" now.
2014-12-13 18:32:59 +00:00
martin
41f1cccf8f
Fix byte order selection for breakpoints: on arm the byte order for code
...
might differ from the generic BFD endianess.
Fixes PR toolchain/49445.
2014-12-12 20:25:35 +00:00
aymeric
426034c57f
. do not abort() if we read a zero cs or rip, or if we can't read them
...
. end the backtrace when encountering a soft interrupt, since they live in
their own lwp
2014-12-02 10:34:27 +00:00
dennis
937de38ba9
Work around RISC-V compiler bug in gcc 4.8.3 (at least).
...
Should be reconsidered if the compiler is updated.
PR toolchain/49425
2014-12-02 03:20:39 +00:00
mrg
eea473d2a5
regenerate mknative files for m68000 now that the build actually completes.
...
this includes a hack matt@ found -- remove -fPIC from libgcc's defs.mk, i
have not yet figured out how to stop confgiure adding it.
2014-11-22 19:42:11 +00:00
joerg
06da94bf06
Merge upstream d840c081f8082e8b9e63fead5306643975a97bb3 to fix
...
UB as seen by a clang compiled as.
2014-11-20 21:44:56 +00:00
matt
549cefa5e6
Avoid using ld -x. Instead use ${OBJCOPY} ${OBJCOPYLIBFLAGS} to string
...
local symbols.
2014-11-02 14:54:27 +00:00
christos
fed776c55d
one more search path.
2014-10-23 23:31:26 +00:00
christos
6eb7640629
make alpha compile
2014-10-23 19:03:38 +00:00
christos
3ce54f1012
use the appropriate unwind.h header
2014-10-23 17:50:24 +00:00
christos
a62fb610ef
stop playing type games, and use the proper type for the placement new operator
2014-10-23 17:50:08 +00:00
christos
37db287df0
Use libdplibs
2014-10-23 12:16:25 +00:00
christos
9512ff2aab
simplify and add more architectures.
2014-10-23 00:25:54 +00:00
christos
9b7e305c80
set the proper asan variable
2014-10-22 23:17:24 +00:00
christos
c589879b35
Add build glue
2014-10-22 21:22:06 +00:00
christos
877f27642f
add libasan to the build
2014-10-22 21:21:02 +00:00
christos
f4169a524f
more portability fixes.
2014-10-22 21:19:59 +00:00
christos
152b237a9f
add undef first
2014-10-22 20:50:20 +00:00
christos
38f6727a61
Do the mcontext stuff differently so that we don't fail compilation.
2014-10-22 16:53:16 +00:00
christos
df8aa0850e
NetBSD supports -lasan
2014-10-22 16:52:47 +00:00
christos
ff64bca229
Add libraries the statically linked address sanitizer library needs.
2014-10-22 16:52:23 +00:00
christos
0b7d23047d
No need to -I execinfo now that unwind.h is installed.
2014-10-22 16:31:57 +00:00
christos
496a0216ed
reduce diffs with upstream.
2014-10-22 16:29:47 +00:00
christos
8bb734fd0d
Go back to use the linux version which can be used for our stuff too now.
2014-10-22 03:07:11 +00:00
christos
9017a279de
install a shared library version, now that we know how to do it.
2014-10-22 00:16:29 +00:00
christos
9d5ff525cf
the interceptors don't know about __RENAME() so add a kludge.
2014-10-22 00:15:16 +00:00
christos
d37ef571ab
remove default debugging code.
2014-10-22 00:14:52 +00:00
mrg
f8d24b5299
regen for netbsd version fix. (actually, this seems to not
...
actually be necessary, it only fixes local comments to be
correct..)
2014-10-20 23:49:14 +00:00
christos
0cfc64bcab
add some missing sources.
2014-10-17 21:48:17 +00:00
christos
e92bf7695e
more fixes: builds and runs now, but coredumps after stackgap mprotect (mmap)
2014-10-17 21:44:47 +00:00
christos
aa4e64f22b
NB this does not work yet, it is a work in progress.
2014-10-15 19:20:29 +00:00
christos
abf6d4b3bf
make this compile, pretending a lot that we are linux.
2014-10-15 18:44:49 +00:00
mrg
6ec53c318c
regen mknative for gcc 4.8-2014-10-09.
2014-10-12 19:55:21 +00:00
mrg
5a5404318c
more regen for complex etc, fixes.
2014-10-12 08:17:35 +00:00
mrg
2f7e65f195
merge GCC 4.8 2014-10-09, part 1.
2014-10-12 07:11:58 +00:00
mrg
cd5ea10d63
initial import of GCC 4.8 snapshot 2014-10-09. this fixes at
...
least the below GCC PRs, among many other changes.
it also makes sh3 reasonably useful again.
c++/60731
c/61271
c/61271
c/61271
debug/55794
debug/60655
debug/61923
debug/63284
debug/63342
inline-asm/63282
ipa/61986
ipa/62015
libobjc/61920
libobjc/61920
libstdc++/58962
libstdc++/60734
libstdc++/60966
libstdc++/61946
libstdc++/63449
middle-end/61010
middle-end/61045
middle-end/62103
rtl-optimization/57003
rtl-optimization/60866
rtl-optimization/60901
rtl-optimization/61801
rtl-optimization/62004
rtl-optimization/62030
target/49423
target/52941
target/61044
target/61202
target/61208
target/61231
target/61239
target/61249
target/61300
target/61423
target/61431
target/61443
target/61483
target/61542
target/61545
target/61570
target/61586
target/61996
target/62195
target/62218
target/63428
tree-optimization/60196
tree-optimization/61375
tree-optimization/61383
tree-optimization/61452
tree-optimization/61684
tree-optimization/61964
tree-optimization/62073
tree-optimization/62075
tree-optimization/63189
tree-optimization/63341
tree-optimization/63375
2014-10-12 06:58:16 +00:00
mrg
d00e30dba8
more regen for complex and more. only sun2 and ia64 missing now.
2014-10-11 21:28:43 +00:00
mrg
d0e58b2d00
this doesn't need <execinfo.h>, which doesn't exist on older hosts.
2014-10-11 20:50:59 +00:00
mrg
db518126d4
more regen for complex and more.
2014-10-11 19:55:59 +00:00
mrg
251814c8d8
more regen after complex and other fixes.
2014-10-11 09:15:04 +00:00
mrg
958e616745
bump libstdc++ minor due to new complex etc functions enabled.
2014-10-10 10:10:40 +00:00
mrg
d1eae5409b
regen gcc mknative files for new complex and more.
2014-10-10 10:05:34 +00:00
apb
db3976795f
Add space before "]" in "if [ ... ]" to fix usage error
...
and test for existence of the correct file.
2014-10-03 12:41:41 +00:00
joerg
652ca0d126
When building with clang, use the C++11 feature for explicit template
...
specialisation.
2014-10-01 22:44:03 +00:00
joerg
fa6ce9bf24
Explicitly request using the libstdc++ header path for clang, C++11 for
...
everything and disable the unsupported ABI tagging.
2014-10-01 22:27:33 +00:00