summaryrefslogtreecommitdiff
path: root/gnu
AgeCommit message (Collapse)Author
2012-10-26Fix for CVE-2012-5195; ok miod@Todd C. Miller
2012-10-23Define __PIE__ and __pie__ when compiling PIE code, just like newer versionsMark Kettenis
of GCC do. ok millert@, guenther@, pascal@, deraadt@
2012-10-18Add support for stac/clac instructions to manipulate the flagJonathan Gray
that controls the behaviour of Intel's Supervisor Mode Access Prevention (SMAP) feature. 'looks correct' miod@ ok deraadt@
2012-10-13fix typo, keyword is exists, not existMarc Espie
2012-10-06Our system headers are supposed to be C++-aware these days so stop GCC fromMark Kettenis
wrapping them with an implicit extern "C" since that breaks the webkit port. Help from matthew@ and landry@. ok landry@
2012-10-02fix weird depend on -liberty, okay miod@.Marc Espie
maybe not the simplest fix, but I'd rather it gets fixed now, while we discuss details :)
2012-09-27last stage of rfc changes, using consistent Rs/Re blocks, and moving theJason McIntyre
references into a STANDARDS section;
2012-09-16Build gcc as non-PIE. PIE breaks precompiled headers and causes a seriousMark Kettenis
performance hit on some architectures (almost 20% on hppa, more than 25% on sparc64). And there are no real benefits associated with ASLR for a compiler. ok deraadt@
2012-09-09Set use_collect2 on m88k. Fixes the lib/csu/init_priority regress test.Miod Vallat
IMPORTANT: be sure to recompile and reinstall libc, libobjc, libpthread and libstdc++ immediately after installing the new gcc.
2012-09-07disassemble the rdrand instruction on i386/amd64Christian Weisgerber
2012-09-03Teach as(1) about rdrand on i386/amd64.Mark Kettenis
ok jsg@
2012-09-02Provide ios::pos_type and ios::off_type on gcc 2.95 platforms, as some portsMiod Vallat
want to use them. ok espie@ jsg@
2012-09-01Bounds check before addressing call_used_regs[], avoids segfaults inMiod Vallat
fixup_match_2() on landisk building mysql; gcc PR #28467 help and prodding jsg@, ok kettenis@
2012-09-01Clean up the correct file to fix parallel make failuresPhilip Guenthe
ok deraadt@
2012-09-01Fix typo in comment: s/PT_OPENBSD_RANDOMDATA/PT_OPENBSD_RANDOMIZE/Matthew Dempsky
2012-09-01don't pollute the src dir with info pages when doing buildsJonathan Gray
ok kettenis@ deraadt@
2012-08-31Add a DT_DEBUG tag to PIEs as well.Mark Kettenis
ok pascal@
2012-08-31Sync vestigial in-tree GCC 3 specs with recent GCC 4 changes.Matthew Dempsky
From Brad.
2012-08-31Apply to sparc the same change as to sparc64: Pass -K PIC to the assembler whenPascal Stumpf
we're default PIE. allows Theo to build PIE-by-default sparc; ok kettenis@
2012-08-31Switch GCC to use __guard_local instead of __guard. This allows GCCMatthew Dempsky
to emit -fstack-protector code that doesn't need GOT indirection for accessing __guard. Tested on amd64, i386, sparc64, hppa, loongson, and sgi (thanks lteo, djm, sthen, todd, naddy, kettenis, phessler, jasper, and anyone else that I'm missing who tested).
2012-08-31Use OBSD_LIB_SPEC and OBSD_CPP_SPEC instead of rolling our own. MeansMark Kettenis
powerpc now gets the right behaviour for -pthread as well. ok pascal@, krw@, millert@
2012-08-31No longer create lib*_pic.a files. Nothing uses them anymore.Theo de Raadt
grep help from sthen; discussion with brad ok guenther pascal
2012-08-30On sparc64, we still need to pass -K PIC to the assembler when compiling PIE.Pascal Stumpf
Found out the hard way by deraadt@. ok kettenis@
2012-08-29Add DWARF2 CFI unwinder for hppa.Mark Kettenis
2012-08-29Adjust for changes to "struct reg".Mark Kettenis
2012-08-29Our _mcount doesn't use profile counters. Partially fixes profiling on hppaMark Kettenis
(things link now).
2012-08-28Add support for PIE-by-default in both ld and gcc. This is a completelyPascal Stumpf
different approach than the one taken in kurt@'s original diff, but deemed better after discussion and diff exchange with kettenis@ and matthew@. Lots of feedback by kettenis@ and matthew@, prodding and encouragement by deraadt@. ok kettenis@ matthew@
2012-08-28Work around -Wbounded warning by using sizeof(x_fname), not FILNMLEN. ThePascal Stumpf
latter gets defined incorrectly (too small) because of include ordering issues. Same fix as for binutils-2.17. Noticed by deraadt@. ok matthew@
2012-08-28-fPIC and -fpic for m68kJonathan Gray
ok miod@ deraadt@
2012-08-24Back out the bit that links all shared libraries against -lc from the previousMark Kettenis
commit. It breaks make build on arm and generally causes more grief than the the (small) benefit it is supposed to bring. ok matthew@
2012-08-22recognise rrx mnemonic, from GPLv2 apple cctools via FreeBSDJonathan Gray
ok miod@
2012-08-22Bring in a change from post 2.17 (but still GPLv2) binutilsJonathan Gray
to avoid BFD64 host ifdefs in 32 bit only sparc targets. elfxx-sparc.c 1.31 and elfxx-sparc.h 1.8 Needed to compile sparc from a 64 bit host. ok miod@
2012-08-22make this compile by adapting loongson changes to the 2.17 struct layoutJonathan Gray
ok miod@ matthew@
2012-08-22add a file from 2.17 which was omitted when imported but needed for mips64Jonathan Gray
ok miod@ matthew@
2012-08-21remove -DSM_OMIT_BOGUS_WARNINGS which was intended to remove spuriousJonathan Gray
gcc warnings over ten years ago but now causes warnings while preventing none. vax never used this define, so gcc 2.95 is fine without it as well. ok guenther@ millert@
2012-08-20Add support for .openbsd.randomdata and PT_OPENBSD_RANDOMIZE toMatthew Dempsky
binutils 2.17. Passes randomdata regress tests on sparc64.
2012-08-20Add support for .openbsd.randomdata sections and PT_OPENBSD_RANDOMIZEMatthew Dempsky
segments to the kernel, ld (2.15), and ld.so. Tested on alpha, amd64, i386, macppc, and sparc64 (thanks naddy, mpi, and okan!). Idea discussed for some time; committing now for further testing. ok deraadt
2012-08-20Sync GCC 3's libpthread specs with GCC 4's. Not currently used byMatthew Dempsky
anything, but might as well as long as GCC 3's still in tree. From Brad.
2012-08-18RFC updates:Jason McIntyre
5322 obsoletes 2822 5321 obsoletes 821 and 2821 6409 obsoletes 2476 and 4409
2012-08-18within Rs/Re reference blocks, use %U instead of %O (or any otherJason McIntyre
variants) for URLs, allowing mandoc -Thtml to properly generate links; (sendmail.8 changes are simply using Lk, which i somehow missed in previous) ingo reminded me to verify that gnu groff recognises %U: 1.20.1 does not, but 1.21 does;
2012-08-15A couple small but long anticipated changes:Matthew Dempsky
- Link libpthread.so with -znodlopen. Because libpthread overrides the weak symbols in libc, we can't allow it to be dynamically loaded or else libc's weak symbols might have already been resolved by ld.so. (Also, major bump because this is technically a backwards incompat change in behavior, although dlopen()ing libpthread never really worked.) - Link libc.so with -nodefaultlibs -lgcc. This ensures that libc doesn't try to link against itself (which ld.so wouldn't like). - Change GCC 4 to link shared objects with -lpthread and -lc as appropriate, now that there's no issues with doing so. This means that it's no longer necessary to patch software to use -pthread instead of -lpthread. (Ports tree rejoice!) Also, to preemptively answer this question: No, this does not eliminate the need for LD_PRELOAD=libpthread.so. That's a separate issue that won't be resolved until we eliminate libc's weak symbols. Discussed extensively on email and icb over the past few months. ok deraadt
2012-08-11Actually correctly handle -rpath-link, instead of eating its argument butMiod Vallat
handling it as -r. Oops.
2012-08-09Recognize and silently eat -rpath-link, as already done for -rpath, to avoidMiod Vallat
choking on the commandlines the base libtool builds.
2012-08-05We typedef intmax_t/uintmax_t to be long long/unsigned long long,Philip Guenthe
so override gcc's default of long/unsigned long on amd64 like we do the other LP64 platforms. This lets format checking of %jd/%ju work correctly there. ok matthew@ millert@
2012-08-02remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.Okan Demirmen
ok guenther@
2012-07-17martynas added support for the 'long double' math functions to libm atMatthew Dempsky
c2k11, so libstdc++-v3 should make use of them. Major version bump for good measure, and sync libstdc++'s shlib_version with libstdc++-v3's. Issue pointed out by Roberto Bagnara on bugs@ ok deraadt
2012-07-12On i386 gdb failed to display the stack trace of a kernel core dumpAlexander Bluhm
correctly. The gdb backtrace command did not get over the trap stack frame. There is a pushl %esp in alltraps() that was not accounted for. Depending on wheter the analyzed kernel has debugging symbols or not, the symbol is calltrap or alltraps. Both get special treatment now. ok miod@ kettenis@
2012-07-10In a scalar context, mkstemp should return just the file handlePhilip Guenthe
"sure" espie@
2012-07-08These files contain OpenBSD and Mdocdate keywordsIngo Schwarze
that weren't updated because the substitution mode was set to -ko. ok guenther@ millert@
2012-06-20Fix GCC's use of _POSIX_PRIORITY_SCHEDULING andMatthew Dempsky
_POSIX_THREAD_PRIORITY_SCHEDULING. POSIX 2001 states that they can be defined to -1 to indicate that the feature is not supported (which is how we define them), so it's not okay to just check whether or not they're defined. Arguably, SUSv2 allows GCC's usage, but we don't special case these feature flags for SUSv2, and these files need to be compilable in BSD and POSIX compat modes anyway. From Brad.