wiz
2aa6701c2b
Remove trailing whitespace.
2018-08-24 14:24:50 +00:00
martin
48f4f2396c
Bump date
2018-08-24 11:43:13 +00:00
martin
bf2f242dcd
Add support for remapping requested paths via a .bzredirect file.
...
Fixes PR 52772. Ok: mrg@
2018-08-24 11:41:16 +00:00
mrg
05225295cb
fix output since protocol agnostic change went in.
...
XXX: i thought someone hooked this into atf already, please do :)
2018-08-24 10:04:41 +00:00
joerg
da0b29937f
Apply relocbase for tlsinit of the executable itself. Fixes PIE where
...
relocbase typically is not zero.
PR bin/53465
2018-07-24 13:48:48 +00:00
christos
8de0d28182
Initialize new_value to account for bogus return from the function.
2018-07-16 00:29:37 +00:00
gson
4828bdca7d
No semicolon after macro do ... while (0) wrapper.
2018-06-23 07:21:00 +00:00
christos
64715b9aa8
We can't build those three with MKSANITIZER, they are used too early.
2018-06-09 22:41:55 +00:00
christos
b5fd6cb2a8
rename flag to the official name.
2018-05-24 17:05:54 +00:00
sevan
658d9240b5
remove definition of LUA_USE_APICHECK, it is a build time option for Lua
...
itself. Not for modules.
2018-05-11 20:19:25 +00:00
sevan
3186d74c3d
Do not try and process empty requests. This resolves a crash when issuing a
...
carriage return to read_request() in foreground mode.
In the C daemon, a NULL check is performed on bozo_read_request in main.c
before moving on to bozo_process_request & bozo_clean_request. Here,
process_request & clean_request just return instead.
2018-05-04 19:45:27 +00:00
christos
d9ca995a53
fix the rest of the compilers.
2018-05-04 18:07:23 +00:00
christos
c1e5495798
fix lint
2018-05-04 18:06:44 +00:00
sevan
89bb3c6008
Unbreak script for Lua 5.3.
...
This change breaks support for older releases of Lua.
2018-05-02 00:03:27 +00:00
sevan
f11f7afd13
Pass the expected httpd instance when calling set_pref()
...
process_request() only takes a single argument.
2018-05-02 00:00:30 +00:00
sevan
babdc61a7b
Enable checking arguments for validity.
...
Remove disabled code.
Fix function parameters.
Add support for Lua 5.3
2018-05-01 23:51:53 +00:00
riastradh
7bc66ed4ff
Add -f option to ftpd to stay in foreground with -D.
...
From nia in PR bin/53221.
2018-04-28 13:38:00 +00:00
joerg
f80c3669c3
Rework ifunc support to address a number of short comings:
...
- Move to a shared _rtld_call_ifunc for rel and rela architectures
- Architectures using rel format must patch IRELATIVE non-PLT
relocations like RELATIVE in additition to the later ifunc handling
- Consistently record the delta to the end of the relocation group for
non-PLT IRELATIVE relocations
Hidden ifunc is now supported on all ifunc platforms, even when using
-fno-plt. The combination of -fno-plt and relro is broken due to
incorrect GNU ld output though.
2018-04-03 21:10:27 +00:00
joerg
2d65afd272
Move the complex logic for dynamically writing branches from ld.elf_so
...
into a header for reuse in crt0.o for static ifunc support. Change the
existing logic for sparc64 to use the Bicc variant of ba,a as it allows
+-8MB displacement compared to the BPcc variant's +-1MB. Teach the sparc
variant the same trick for using ba,a and not sethi+jmp when possible.
2018-03-29 13:23:39 +00:00
joerg
033ffc4d89
Don't skip PLT processing for the main binary. It can still contain
...
ifunc references.
2018-03-25 18:56:01 +00:00
joerg
64156cbaf3
Like Sparc, PowerPC can use IRELATIVE relocations in non-PLT sections.
2018-03-09 20:19:11 +00:00
snj
cb9b4ba530
delete now-irrelevant comment
2018-03-01 06:24:12 +00:00
snj
51521ab7d9
prune disabled XIDLE support. the required X server extension hasn't been
...
around for a couple decades now. even if someone wanted to modernize this,
it wouldn't be appropriate for NetBSD, since we don't want programs in base
to be linked against X libs.
2018-02-28 23:45:56 +00:00
mrg
2e19323388
add LIBKRB5_LDADD/LIBKRB5_DPADD and their static counterparts
...
to bsd.prog.mk. use them instead of hard coding various lists
of libraries for krb5.
this fixes static builds.
2018-02-25 00:16:48 +00:00
jakllsch
db546b38aa
Wrap PowerPC #pragma goop in #if __GNUC_PREREQ__(6,0).
...
Our older GCC warns/errors on it.
2018-02-11 18:58:44 +00:00
christos
63224f5106
We need authentication || encryption even when we are not building
...
kerberos. They are needed for telnet_net_write() which is used in libtelnet.
2018-02-10 19:34:34 +00:00
mrg
1bf47496e9
update for GCC 6:
...
ignore -Wframe-address warnings for the ppc hack.
2018-02-07 06:17:45 +00:00
christos
5f8b254caf
- need string.h
...
- cast options to long for OpenSSL-1.1
2018-02-06 15:48:46 +00:00
skrll
e958e889a2
Various fixes / changes from Ryo Shimizu / Toru Nishimura to make this
...
work.
_rtld_call_ifunc copied from other rela platforms by me - not tested in
any way.
2018-02-04 21:49:51 +00:00
mrg
845c916a36
updates for GCC 6.4:
...
identd has aliasing violations, use -fno-strict-aliasing.
newfs_msdos's getbpbinfo() has missing {} issues.
sysctl's kern_cp_id() has missing {} issues.
2018-02-04 09:03:23 +00:00
maya
501cede865
Use a protocol-agnostic URL (don't degrade HTTPS->HTTP)
...
Suggested by Travis Paul in PR bin/52958.
2018-01-28 13:37:39 +00:00
christos
381da60e92
don't forget to eat the high bits.
2018-01-19 23:17:41 +00:00
joerg
e5e34a6c86
Since GNU ld doesn't honor the PLT entry reservation, also compensate
...
for JMP_IREL relocations at the start of the PLT.
2017-12-25 17:00:15 +00:00
maya
0a4e3118cb
Fix typo in comment
...
from freebsd
2017-12-25 05:29:27 +00:00
maya
6f158d565c
fix debug build
2017-12-24 01:22:16 +00:00
wiz
ffa84063eb
Document script handler issues with httpd(8).
...
From martin@, addressing PR 52194.
While here, use American spelling consistently and upper-case some
abbreviations.
Bump date.
2017-11-28 12:22:27 +00:00
martin
e9e7c8e344
PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
...
sometimes with EFAULT due to not NULL terminated environment.
2017-11-28 10:33:51 +00:00
joerg
da03f1ef14
init/fini for the main program is handled by crt0.o, so ifunc handling
...
is skipped right now as it iterates the same list. Don't repeat that
mistake and explicitly take care of it in the dynamic linker.
2017-11-06 21:16:03 +00:00
ryo
9f03e9b6d3
fix to compile without USE_PAM. (unused variables)
2017-10-07 19:23:02 +00:00
mrg
803cb099d6
s/u_int/unsigned/.
...
from Jan Danielsson. increases/fixes portability.
2017-10-05 04:22:41 +00:00
christos
e771911261
make this compile.
2017-10-02 22:14:32 +00:00
joerg
42f0ecedd8
Include time.h for time.
...
XXX Doesn't build with newer zlib, remove?
2017-10-02 22:04:51 +00:00
nisimura
dfab1def86
explain AARCH64 PLT design
2017-08-28 06:59:25 +00:00
nisimura
695ffc63ca
- avoid caddr_t. use Elf_Addr instead.
...
- iron out rdbg() errors.
2017-08-23 09:17:48 +00:00
joerg
610e531ea3
Add sparc/sparc64 support for irelative relocations.
2017-08-12 09:03:27 +00:00
joerg
e78cfb8eb8
Add IRELATIVE support for ARM, X86 and PowerPC.
2017-08-10 19:03:25 +00:00
joerg
493a7561e4
If a DF_1_NODELETE DSO has been removed from the DAG list, it still
...
needs to be able to resolve relocations against itself. As such, search
the referencing object explicitly last, if it hasn't been searched
before.
2017-08-09 18:44:32 +00:00
martin
806d1922a8
Fix thinko in previous: even if the address is an unsigned value and we
...
have verified the range before, we still need to mask the bit pattern
to the target instruction field.
2017-07-24 08:08:34 +00:00
martin
41cf8822e9
Simplify and fix the offset calculation when doing a %pc relative
...
branch from the PLT slot to the target.
2017-07-23 14:37:51 +00:00
joerg
bde7a58ae6
Fix two bugs related to promotion of DSO TLS blocks into the static
...
thread allocation:
(1) Set the DTV vector up whenever an offset into the static allocation
is assigned, even if the block itself is not initialized. This has been
seen in libstdc++.
(2) Do not free a DTV block if it is part of the static thread
allocation.
2017-07-13 14:10:38 +00:00