Commit Graph

4715 Commits

Author SHA1 Message Date
matt
d885ef237f Allow STT_GNU_IFUNC to be a dynamic symbol. 2014-08-26 16:39:49 +00:00
matt
15c3780af4 Make sure we default to ELFv1. 2014-08-26 15:53:04 +00:00
aymeric
f90e2756f0 missed setting TAG_IS_LINKED in a special case in my previous commit.
Bug reported by Brad Harder, thanks!
2014-08-26 15:19:38 +00:00
joerg
2d09463d91 Allow creation of indirection functions on all platforms, not just GNU
and FreeBSD.
2014-08-25 20:34:36 +00:00
christos
d09cee68fb use the same dynamic sources trick to make sure that the first dependency
is the c source file so that IMPSRC gets set correctly.
2014-08-25 16:27:25 +00:00
christos
4e7b74dc34 change to no-deprecated-declarations 2014-08-25 11:48:01 +00:00
apb
4a34c3a382 Fix error in previous. The sed command really wants one long line. 2014-08-25 10:25:53 +00:00
apb
497135b74d Avoid splitting sed programs over multiple lines with
<backslash><newline><indentation>.  Use multiple -e options instead.
2014-08-24 18:27:16 +00:00
christos
cfc621d8dd Depending on whitespace eating behavior is non portable (our make was
not compliant until today -- it ate all whitespace). Fix commands so
that they don't depend on that.
2014-08-24 16:39:21 +00:00
mrg
32b1e939d3 fix the sources list to match the upstream Makefile.am.
fixes problems reported by jdbaker.

XXX: pullup-7.
2014-08-24 06:13:36 +00:00
matt
dfb3f06a5c Make -mabi=elfv2 work for powerpc64 2014-08-23 06:50:18 +00:00
matt
7532f48a67 Fix powerpc64 support for NetBSD.
Add __PPC_ISEL__ to indicate cpu support the isel instruction
2014-08-23 02:17:47 +00:00
aymeric
94f28557e3 In tagq_free(), fix the test checking whether a TAGQ should be removed from
its tailq. This required introducing a new flag in the TAGQ structure to
avoid reverting to poking under the hood of the queue.h API.

The concrete bug it solves is that using tags would make vi crash reliably
on exit.
2014-08-22 21:28:20 +00:00
matt
9205e77af0 add powerpc64 support 2014-08-22 15:27:50 +00:00
matt
9e064c8f61 Check the variable for RELOCATABLE_NEEDS_FIXUP 2014-08-22 06:52:37 +00:00
matt
80f59eea37 Simplify a little (avoid indirection) 2014-08-22 06:51:34 +00:00
mrg
975cc27cdd rerun mknative for hppa, m68k, sparc*, and vax. 2014-08-22 05:39:20 +00:00
martin
3b1bddb922 Restore ABI for fast_{u,}int_*_t to what we have used for thirteen years. 2014-08-21 15:25:41 +00:00
christos
2e03efc64b PR/49087: Jarmo Jaakkola: Make sure that the first dependency is the C source
file so ${.IMPSRC} gets set correctly.
2014-08-21 08:52:23 +00:00
matt
9e2fe0aaa3 i386 doesn't use subint fast{8,16} 2014-08-20 20:15:55 +00:00
matt
3ff6416ad7 Fix netbsd-stdint.h to allow char and short for int_fast8_t and int_fast16_t
and their corresponding unsigned variants.
2014-08-20 16:00:15 +00:00
joerg
1e46ecab88 Since GCC 4.5 doesn't support noexcept, don't pretend to support it by
using -std=c++0x. Just use the correct value for x.
2014-08-20 15:19:39 +00:00
christos
233c59f4d5 PR/45716: Anthony Mallet: emacs (various versions) dies on unwind stuff in gcc 4.8
Apply fix that got missed as this file got moved from dist/gcc to dist/libgcc:

Somehow emacs tries to unregister frame info for a symbol it did not register.
Don't abort for now. This worked before because the previous version of gcc
did not bother unregistering. Adding debugging printfs makes emacs core
dump, where other programs work fine.

XXX: pullup 7
2014-08-20 13:29:07 +00:00
wiz
a9bf595198 Put local change in sorted location. 2014-08-18 07:12:47 +00:00
christos
dace66f063 merge local changes 2014-08-18 06:57:25 +00:00
christos
69606e3f5c import latest gpl2 make 2014-08-18 06:46:46 +00:00
christos
b65f2d484f ALLOW_FILTER_AAAA_ON_V4 has been renamed to ALLOW_FILTER_AAAA (John D. Baker) 2014-08-18 04:40:51 +00:00
joerg
5983af161f Add new option -P to print only the symbol table size. 2014-08-17 19:12:59 +00:00
matt
7b338264bf Rework so that the ctzsi builtin is supported. 2014-08-17 16:25:21 +00:00
martin
0d6e9da228 Make {u,}intptr_t "long" on both sparc and sparc64 (as the NetBSD headers
always did)
2014-08-15 09:25:25 +00:00
matt
13fd61cc78 Fix INTPTR_TYPE/UINTPTR_TYPE for n32. 2014-08-14 15:16:20 +00:00
matt
e1cf4281db Force INTPTR_TYPE/UINTPTR_TYPE to long int/unsigned long int.
(same types as PTRDIFF_TYPE/SIZE_TYPE)
2014-08-14 11:32:18 +00:00
macallan
feeca9ec0c mention NV_TEST_FOR_KERNEL_DRIVER and explain why it isn't enabled for now 2014-08-13 22:48:15 +00:00
wiz
b8a1052d67 Add missing TP so that -a is not hidden in the -A description.
From Anon Ymous.
2014-08-13 13:53:14 +00:00
plunky
aa224e71db update to r1.377 from upstream, commit message from ragge:
Allow for use of restrict in array declarations (as gcc does).
Fixes gnu regex compilation as reported by William D. Jones on
NetBSD current-users.
2014-08-13 13:37:20 +00:00
plunky
9b491c8bb2 remove unused variable, as reported by Brad Harder 2014-08-13 13:18:08 +00:00
skrll
0e4096dbcc Decode alpha st_other 2014-08-11 20:57:28 +00:00
skrll
8e4a73da69 Apply change from upstream to fix PR/48709 - port-alpha/48709: static
threaded programs crash.

With this fix the new weak symbol's st_other is not merged in, i.e. NOPV
is not copied from the libc __libc_thr_init.

* elflink.c (_bfd_elf_merge_symbol): If merging a new weak
symbol that will be skipped, we don't have a new definition.
2014-08-11 20:53:16 +00:00
mrg
b7bc265a64 put KMS support under our X11DRI definition. 2014-08-11 08:25:58 +00:00
joerg
83376f9f86 This is unlikely to ever work with LLVM's IAS due to the amount of macro
use. Disable it on ARM.
2014-08-10 19:11:08 +00:00
joerg
93f5e2c302 Fix constness of operator ==. 2014-08-10 18:42:33 +00:00
joerg
f14316bcbc Update build glue for LLVM/Clang 3.6svn r215315. Changes include various
performance improvements across all backends and a much improved PPC32
backend.
2014-08-10 17:32:54 +00:00
joerg
20349482dc Mark files without llvm-215315 tag as dead. 2014-08-10 17:21:24 +00:00
joerg
91b24e612c Mark files without clang-215315 tag as dead. 2014-08-10 17:21:02 +00:00
joerg
18ad5bbf2b Import clang 3.6svn r215315. 2014-08-10 17:07:09 +00:00
joerg
0937e35361 Import LLVM 3.6svn r215315. 2014-08-10 17:02:59 +00:00
tls
ea6af427bd Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
jmcneill
3d54b5f121 add missing COMPOSITE define 2014-08-10 14:50:21 +00:00
jmcneill
cc873f1290 use CLOCK_MONOTONIC instead of gettimeofday 2014-08-10 14:43:03 +00:00
jmcneill
710ef731ea define HAS_PIXMAN_GLYPHS=1 and HAS_PIXMAN_TRIANGLES=1 as the configure script would do 2014-08-10 14:17:19 +00:00
jmcneill
aa38d0e3ca USE_SSSE3 not USE_SSE3 2014-08-10 14:10:37 +00:00
apb
a44c2d1c74 Move the arbitrary limit on number of files per commit into
#define MAXARGS.  The limit used to be 10000, but was changed to
1000000 earlier today.
2014-08-10 07:33:37 +00:00
tls
b9dfce9ac7 Relax arbitrary limit of 10,000 changed files per commit idiotically
introduced in CVS 1.11.17.
2014-08-10 07:09:51 +00:00
matt
547b3a3b01 Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only.  While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.
2014-08-10 05:56:36 +00:00
matt
beb9c6d1b5 Preliminary files for AARCH64 (64-bit ARM) support.
Enough for a distribution build.
2014-08-10 05:47:35 +00:00
joerg
82ff1017b0 Update and simplify build glue for libc++ r215289. 2014-08-09 19:06:49 +00:00
joerg
093030cde1 Import libc++ r215289. This brings a number of bug fixes as well as
further changes from the upcoming C++14 like string_view.
2014-08-09 19:03:43 +00:00
joerg
a1757c5af0 Too many pointer sign issues right now to care, so make it non-fatal for
clang.
2014-08-08 23:56:57 +00:00
joerg
29e96a293c Don't dereference pointers without looking at the result. 2014-08-08 23:43:10 +00:00
joerg
ae42c65078 Make main() ISO C compliant. 2014-08-08 23:41:53 +00:00
apb
ff42712e08 Fix name in .Dt, and fix a typo. 2014-08-08 21:57:31 +00:00
wiz
3bc24b0a8b Add option list to SYNOPSIS. Sort option descriptions. Use Nm when
speaking of itself.
2014-08-08 21:46:36 +00:00
apb
daf5582ab4 Install man page for ekermit(1). 2014-08-08 21:41:46 +00:00
apb
1fd098d89f Add a simple man page for ekermit(1).
This is derived from the help output
and the web page http://www.kermitproject.org/ek.html
2014-08-08 21:38:45 +00:00
apb
97d8576cce Add ekermit to the build.
It will replace gkermit, as proposed in tech-userlevel on 7 Aug 2014.
2014-08-08 19:34:35 +00:00
apb
de7534c9a7 Add reachover build infrastructure for ekermit. 2014-08-08 19:30:35 +00:00
apb
755f450934 Make ekermit compile on NetBSD:
* Add several #includes of standard headers in platform.h.
* #undef X_OK in platform.h.  It's defined in the standard <access.h>,
  but also used in the local "kermit.h" for a differentpurpose.
* Declare {struct k_data}.dbf as a function returning void, not int,
  to match the way it's used.
2014-08-08 19:29:34 +00:00
apb
a704a1616e Import ekermit-1.7 from
http://www.kermitproject.org/ftp/kermit/archives/ek17.tar

EK (Embedded Kermit, E-Kermit) is an implementation of the Kermit file
transfer protocol written in ANSI C and designed for embedding in
devices or firmware, use in realtime applications, or for construction
of DLLs and libraries.  A sample calling environment and i/o support are
provided for Unix.
2014-08-08 19:20:38 +00:00
apb
580ccc375e Adapt tzdata2netbsd script to the new source location.
* Change src/share/zoneinfo to src/external/public-domain/tz.
* The NEWS file is not distributed in the tzdata tar.gz file,
  but it logically belongs with it.  We were already downloading the
  NEWS file from a different location, but now we also add it to the
  import directory.
2014-08-08 09:47:28 +00:00
apb
2c9001de40 Hook external/public-domain/tz into the build, and unhook share/zoneinfo.
The timezone files are still installed in ${DESTDIR}/usr/share/zoneinfo/**,
and they are identical before and after this change.

This is almost the last step in moving NetBSD's tzdata sources from
share/zoneinfo to external/public/tz/dist, to ease future maintenance.
All that remains is to delete src/share/zoneinfo, but that will be
delayed for a while.
2014-08-08 09:34:10 +00:00
apb
a7eb98960f Part of the new infrastructure for building tzdata under src/public-domain/tz. 2014-08-08 09:18:02 +00:00
apb
dd837652ad Adapt to the new source location under src/public-domain/tz. 2014-08-08 09:17:03 +00:00
apb
1528d314bb Add infrastructure for building tzdata under src/external/public-domain/tz. 2014-08-08 09:14:40 +00:00
apb
102b42707c Copy src/share/zoneinfo/tzdata2netbsd (revision 1.5) to
src/external/public-domain/tz/tzdata2netbsd.

This is a verbatim copy, as part of moving the zoneinfo sources in the
NetBSD tree.  It will need to be edited before it works.
2014-08-08 09:08:19 +00:00
apb
6fcb06fd20 Copy src/share/zoneinfo/Makefile (revision 1.47) to
src/external/public-domain/tz/share/zoneinfo/Makefile.

This is a verbatim copy, as part of moving the zoneinfo sources in the
NetBSD tree.  It will need to be edited before it works.
2014-08-08 09:06:41 +00:00
apb
b10f80964b Import tzdata2014f from ftp://ftp.iana.org/tz/releases/tzdata2014f.tar.gz
and NEWS file from https://github.com/eggert/tz/raw/2014f/NEWS.

NetBSD's tzdata code is being moved from src/share/zoneinfo to
src/external/public-domain/tz/dist, to simplify future maintenance.

This is the same version of tzata that was previously imported to
src/share/zoneinfo.  The NEWS file has been added to the import,
although it is not distributed in the tzdata2014f.tar.gz file.
2014-08-08 08:56:47 +00:00
apb
71da667fc9 Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.
2014-08-05 15:40:58 +00:00
rjs
2e4645adef Link against radeon_libdrm.
Re-enable building kms bits, ok mrg@.
2014-08-04 01:25:23 +00:00
matt
5f1230b24d powerpc*-netbsd*: include netbsd-elf.h after sysv4.h 2014-07-31 22:58:40 +00:00
roy
648f3093d2 Sync 2014-07-30 15:47:32 +00:00
roy
b15082aeb8 Import dhcpcd-6.4.3 with the following changes:
*  Correct DHCPv6 Prefix Delegation option decoding
  *  Poll interfaces on BSD for IFF_RUNNING if link state cannot be obtained
  *  Check for an IA to use in DHCPv6 lease validation
  *  Warn about exceeding IDGEN_RETRIES when a stable private address cannot
     be obtained
  *  Fix DHCP option overload handling, thanks to Tobias Stoeckmann
2014-07-30 15:44:09 +00:00
mrg
b023f79416 update for reality. 2014-07-28 22:12:16 +00:00
matt
55fb2afcd5 rs6000/sysv.h must be after netbsd.h so we use the ppc CC1_SPEC 2014-07-28 20:18:54 +00:00
joerg
18fd8dcd8d SPEC_MAXOFFSET_T doesn't exist anywhere else, so don't use it here
either.
2014-07-28 10:01:23 +00:00
mrg
3b01e49a4e disable KMS for now; it breaks UMS + (old) radeondrm. 2014-07-27 23:24:19 +00:00
dholland
c08b6bfde0 Update the bug report URL as per PR 48712. I assume in order for this
to propagate to where it'll be seen we need to rerun mknative, which
I'm not in a position to do right now; but this way it'll update the
next time someone else does that.
2014-07-27 04:16:09 +00:00
mrg
fba17c9a56 enable KMS on x86. 2014-07-26 08:05:15 +00:00
mrg
1d2c654a12 link against libdrm_radeon, from @riastradh 2014-07-26 08:04:54 +00:00
ryoon
4575a9c0a5 Fix dtrace kernel module build.
Add nodiscard to cdevsw.
They are not fixed in fallocate/fdiscard changes.
2014-07-26 04:54:20 +00:00
joerg
f24d03ddc0 Define guard_lock_t on 32bit Big Endian platforms too. 2014-07-25 16:25:24 +00:00
skrll
f1f067a61c New firmware to support the model B+
commit 59c7325f2d49603faad398677f339dfd7870ecfd
Author: popcornmix <popcornmix@gmail.com>
Date:   Thu Jul 24 17:58:30 2014 +0100
2014-07-25 15:37:01 +00:00
christos
e05fabfbe0 tty is an array and can't be null; thanks joerg@clang 2014-07-25 09:06:17 +00:00
joerg
0db678e818 Avoid playing games with format strings, just use a second printf. 2014-07-24 22:59:01 +00:00
plunky
15b5799821 make p++ optional, on MKCXX 2014-07-24 20:55:45 +00:00
plunky
f790188161 update build framework for import of pcc-20140706 2014-07-24 20:20:48 +00:00
plunky
b60d77249d fix merge conflicts for pcc-20140706 2014-07-24 20:12:50 +00:00
plunky
3862d4bab1 Import latest PCC snapshot 20140706; it has been over two years since
the last import, and some build framework has been changed so this
makes it easier for people to work with later versions.

The full list of changes in the meantime are available at the PCC
CVS server, and the bugs fixed are detailed at the PCC bug tracker,
but in summary, new features added are a C++ front end, m68k support
and unicode support.

and bugs fixed in the areas of the register allocator, floating point,
attributes, long long arithmetic, PIC support and code sections (for
shared libraries) among others.

This version compiles the vast majority of the NetBSD sources on i386,
and bug reports are welcome at the PCC JIRA server.
2014-07-24 19:22:18 +00:00
plunky
17d96ee84f Import latest PCC snapshot 20140706; it has been over two years since
the last import, and some build framework has been changed so this
makes it easier for people to work with later versions.

The full list of changes in the meantime are available at the PCC
CVS server, and the bugs fixed are detailed at the PCC bug tracker,
but in summary, new features added are a C++ front end, m68k support
and unicode support.

and bugs fixed in the areas of the register allocator, floating point,
attributes, long long arithmetic, PIC support and code sections (for
shared libraries) among others.

This version compiles the vast majority of the NetBSD sources on i386,
and bug reports are welcome at the PCC JIRA server.
2014-07-24 19:11:58 +00:00
christos
c502590077 cleanup more trash that are in the distribution. 2014-07-24 15:16:26 +00:00
christos
64e1aa0590 remove ssp commented out lines, they don't see to be needed anymore. 2014-07-24 15:11:09 +00:00