| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
|
|
| |
Instead of just checking if *namep is NULL, also check if the string
pointed by *namep is empty. This is probably the original intent of
the code.
OK kettenis@ jsg@ deraadt@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
An amd64 clang 10 binary built with lld 10 would abort after calling
execve(2) if it had been stripped. PT_LOAD segment aligment being
changed by strip was the cause.
Changing to 4K matches lld and results in a working binary after strip.
Introducing ELF_MINPAGESIZE of 4K (which is ELF_MAXPAGESIZE if not
defined by the arch) would have also worked but we don't support large
pages in userland.
ok kettenis@
|
|
|
|
| |
ok jasper@
|
| |
|
|
|
|
|
|
|
| |
generate fatal compiler warnings at least when cross-compiling and
fixing the code isn't trivial.
ok patrick@, drahn@
|
|
|
|
| |
Disable PIC/PIE for powerpc64 for now.
|
|
|
|
|
|
|
| |
arithmetics on NULL, like we did in r1.21 on elflink.c, to stop
clang from complaining when setting up a cross-toolchain.
ok kettenis@
|
|
|
|
|
|
| |
symbols that were hidden. Fixes building Mesa on hppa.
ok deraadt@
|
|
|
|
|
|
|
|
|
|
|
| |
which means we do stop creating other jobs as soon as we run something looking
like "make" to avoid unwanted recursion, so you would never hit that.
But in binutils-2.17, the developers changed all/info to do recursive makes
with some of the same dependencies. Calling both at the same time becomes
an obvious race, and should be fixed for no other reason than correctness.
okay guenther@
|
|
|
|
| |
okay millert@, tb@
|
|
|
|
|
|
|
| |
this got fixed in recent binutils, but it's GPLv3.
So do the same thing in a slightly different way
okay guenther@
|
|
|
|
| |
ok partrick@, kettenis@
|
|
|
|
| |
ok visa@
|
|
|
|
|
| |
no functional change intended;
OK millert@
|
|
|
|
| |
OK deraadt@ millert@ kettenis@
|
|
|
|
|
|
| |
from unsigned long to int.
OK deraadt@ millert@ kettenis@
|
|
|
|
|
|
|
|
|
|
|
|
| |
ld(1) would try to free uninitialized memory when used with -r -b binary
<fontfile> by ports/textproc/mupdf. Perform the same bfd type check
as bfd_elf_match_symbols_in_sections(). Fix found the hard way,
cheese and wine sponsor: miod. Almost identical fix already present
upstream.
Also set the freed pointer to NULL, just in case.
ok tb@ sthen@
|
|
|
|
|
|
|
|
| |
As of usr.bin/xinstall/install.c revision 1.68, -S is a no-op and
install(1) will always create files safely, thus clean the option usage
from the tree.
Diff from Lauri Tirkkonen <lotheac at iki dot fi>, thanks.
|
|
|
|
|
|
|
|
|
| |
been fixed in a much more complicated way upstream which we can't easily
backport and involves GPLv3 code as well. So instead simply nuke the addend
in the most convenient spot. Makes -Wl,-relax work well enough to link
base clang.
ok guenther@
|
|
|
|
|
|
|
|
| |
in order the generate .eh_frame_hdr. In particular, don't rely on FDEs
pointing to the last CIE that was seen. Fixes exception handling issues
with clang++ on platforms that don't use ld.lld as the default linker.
ok deraadt@
|
|
|
|
| |
ok patrick@, naddy@
|
|
|
|
| |
ok patrick@, naddy@
|
| |
|
|
|
|
| |
ok kettenis@ deraadt@
|
|
|
|
|
| |
Problem reported by bluhm@
ok kettenis@
|
|
|
|
|
|
| |
zero-sized sections.
ok deraadt@, guenther@
|
|
|
|
|
|
|
|
|
| |
The directive is needed in certain parts of the kernel code when
compiling using clang. By ignoring the directive, the old toolchain
will still be able to build the kernel after the code has been adjusted
for clang.
OK kettenis@
|
|
|
|
| |
OK visa@, mpi@, guenther@
|
|
|
|
|
|
|
|
| |
that has been compiled using clang.
The added code is based on old binutils code from year 2000.
Prodded by and OK jca@, OK kettenis@ guenther@
|
|
|
|
| |
value, so setting it to 'no' was completely misleading
|
|
|
|
|
|
|
| |
for the start+end of .{preinit,init,fini}_array sections when building
PIE executables.
ok kettenis@
|
|
|
|
|
|
| |
dumps with many many segments.
ok yasuoka@
|
|
|
|
|
|
|
|
| |
to pass the real count, with a minimal .shstrtab segment for consistency.
Also, add support for PN_XNUM to readelf.
problem reported and testing by claudio@
ok kettenis@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to ld and improve the readelf support:
https://sourceware.org/ml/binutils/2006-07/msg00129.html
https://sourceware.org/ml/binutils/2006-07/msg00181.html
Disable the ld support on mips64, as its ABI requires a symbol
ordering that conflicts with the requirements of DT_GNU_HASH.
Tested on macppc, alpha, and sparc64 to verify operation with all
three ELF word size combos
testing help miod@
ok kettenis@
|
|
|
|
| |
ok naddy@ jca@
|
|
|
|
| |
access it. ok deraadt@ kettenis@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
given as input before the resolved source location. This change was introduced
to bintutils after the switch from GPLv2 but the author Tristan Gingold granted
me permission relicense the diff under GPLv2; thanks!
Taken as is from binutils commit be6f64938f985dfb0eaa2107b99f193bb865ce04
This option is used by the syzkaller kernel fuzzer to produce a human readable
representation of the coverage collected by kcov.
ok deraadt@ jca@ visa@
|
| |
|
|
|
|
|
|
| |
INV{EPT,VPID,PCID}
ok mlarkin@
|
|
|
|
|
|
|
|
|
|
|
|
| |
will be installed as /usr/bin/ld.bfd on supported systems. This allows
users to fall back on the old linker by using the -fuse-ld=bfd option on
systems where lld is the default linker.
Switch armv7 to use lld as the default linker. On arm64 we already use lld
as the default linker. Other platforms will keep using the GNU linker for
now.
ok patrick@, deraadt@, phessler@
|
|
|
|
| |
From Sebastien Marie
|
|
|
|
|
|
| |
don't barf on binaries created by ld.lld(1). From FreeBSD.
ok millert@, deraadt@, guenther@
|
|
|
|
|
|
| |
when compiling with LLVM 6.0.0. This is a good enough temporary fix.
"where's the kaboom?" deraadt@
|
|
|
|
|
|
|
|
| |
pointers. Since binutils 2.17 is compiled with -Werror, this breaks the
build. Change the function to return -1 as suggested by the comment in
said function.
ok kettenis@
|
|
|
|
|
|
| |
Makes gas work when compiled with clang.
ok patrick@, millert@
|
|
|
|
| |
ok millert@
|
|
|
|
|
|
|
|
| |
While it is not clear (to me) why that ports ends up with corrupted
shared libs, reverting those changes fixes the issue and should allow us
to close p2k17 more smoothly.
Discussed with a bunch, ok ajacoutot@ guenther@
|
|
|
|
|
|
|
|
|
|
| |
We don't link libc into shared-libraries by default to avoid binding libraries
to specific libc majors, so those options have always suffered false positives
for us, but with the move of functions from libpthread to libc the problem has
gotten even worse. A version-agnostic binding to libc would solve this better
but it's on back-order behind the pony I requested.
tweak and ok deraadt@
|
|
|
|
|
|
| |
assignment and isn't used by clang/lld.
ok jsg@
|