Age | Commit message (Collapse) | Author |
|
declared static.
OK guenther@
|
|
ok kettenis@
|
|
relocation of ld.so's GOT without using it, so _reloc_alpha_got()
merely made the call to _dl_boot_bind() from asm simpler...while
itself being a call that required special handling.
diff and muild baking by miod@
ok guenther@
|
|
That part is not needed with a PIE toolchain, but until gcc 4 on m88k
receives enough fixes to produce as good code as gcc 3, the bits in
r1.5 are still required.
This fixes miniperl does not work correctly while building perl on m88k.
Diff is suggested by Miod Vallat, tested by him and me, ok guenther@
|
|
not the address of its GOT entry. The current code mixed the high bits of
the GOT entry address with the low bits of the true address. This only
worked by accident for small binaries where _DYNAMIC and its GOT entry
happen to reside on the same page.
ok guenther@, mortimer@
|
|
Convert __cerror to hidden visibility.
from miod@
|
|
problem noted by deraadt@
ok espie@
|
|
ok kettenis@
|
|
okay millert@
|
|
implementations.
ok guenther@
|
|
Necessary (but perhaps not suffcient) to build large binaries on arm.
ok guenther@
|
|
ok kettenis@
|
|
ok krw@ guenther@
|
|
|
|
ok kettenis@
|
|
Mark __init() as hidden
ok kettenis@ deraadt@
|
|
|
|
ok kettenis@ deraadt@
|
|
sections as extern hidden arrays of indefinite size, so that the compiler
(well, clang) doesn't believe it knows the exact contents and thus optimize
things into infinite loops. Actually set the symbols to be in the sections
and insert the leading and trailing values via __asm().
Problem pointed out by patrick@
testing and ok kettenis@
|
|
ok phessler@ deraadt@
|
|
|
|
the extern declaration of __got_{start,end}.
ok guenther@
|
|
|
|
symbols. Either the PT_LOAD RWX->RX case ot PT_GNU_RELRO should cover this
already for anything we care about. And lld, the llvm linker, doesn't emit
the __got_start and __got_end symbols and there are good reasons to leave it
that way.
ok guenther@
|
|
.dtors sections writable just like they are in crtend.o and code generated
by compilers. This is necessary to make sure that linkers that respect the
ELF spec a bit better (such as lld) correctly concatenate the secttions.
ok deraadt@
|
|
tweak & ok kettenis@
|
|
by the file being created in /tmp.
tweaks and ok tb
|
|
- simpler uniform pattern
- put the tmpfile in OBJDIR, so that mv doesn't whine about groups
when using a separate builduser.
okay millert@
|
|
AEABI-like.
ok tom@, jsg@
|
|
ok guenther@
|
|
unecessary code from the normal startup code and do some general cleanup to
make the code more readable.
ok guenther@, jsg@
|
|
the switch to eabi. This does not include static PIE which will be
handled later.
A specific sequence of steps is required to cross over this change,
using a snapshot is the easiest way to do so.
ok kettenis@
|
|
|
|
instead of the [__got_start, __got_end) range.
Also, instead of mprotecting the [__plt_start, __plt_end) range,
just scan for sections which are both writable and executable and
mprotect them to read-only. (This part was stolen from kettenis@)
ok kettenis@
|
|
mips64be testing by deraadt@
|
|
save that and pass it to _dl_boot_bind() too
|
|
|
|
|
|
archs using the #else case
|
|
problem noted by Andrew Ngo (andrew.ngo (at) gmail.com)
|
|
hppa reverse-stack gives us a valuable test case, but most developers don't
have a 2nd one to proceed further with this.
ok kettenis
|
|
Export _gmonparam again.
Make gcrt0.o use an reserved name for _monstartup()
ok millert@
|
|
with strong symbols in ld.so don't do what we need, so put definitions back
in crt0 and make ld.so update __progname like it does environ.
report and testing patrick@ jsg@
|
|
move their definitions and initialization in static links to libc.a
Make crt0 always invoke a new func _csu_finish() in libc to process the auxv
and to either register the ld.so cleanup function (in dynamic links) or
initialize environ and __progname and do MC_DISABLE_KBIND (in static links).
In libc, get pagesize from auxv; cache that between getpagesize() and
sysconf(_SC_PAGESIZE)
ok mpi@ "good time" deraadt@
|
|
ok kettenis@ mpi@
|
|
overriding
ok deraadt@ kettenis@
|
|
lots of agreement.
|
|
just the dynamic tags are needed instead of reusing the generic elf_object_t
structure.
testing and feedback from miod@
ok kettenis@
|
|
stubs for the executable from crtbegin.o into libc, which lets them be
excluded from static links that don't use them.
For this, drop the normal crt{begin,end}S.o from libc.so: the .init and .fini
sections for libc aren't called at the right times anyway, so it's good that
they're unused. libc.so just needs __guard_local and the .note.openbsd.ident
section, so add them to stack_protector.c for now (this will be improved)
"good time" deraadt@
|
|
to calculate the GOT address anymore.
ok guenther@ (who spotted the latter bit)
|