<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/rtld-elf/arm, branch releng/10.2</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F10.2</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F10.2'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2014-09-12T16:22:01Z</updated>
<entry>
<title>MFC r270798:</title>
<updated>2014-09-12T16:22:01Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2014-09-12T16:22:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=36b9190bd1d13ee0436ee2f6b0d51493027c80a8'/>
<id>urn:sha1:36b9190bd1d13ee0436ee2f6b0d51493027c80a8</id>
<content type='text'>
Process STT_GNU_IFUNC when doing non-plt relocations.

MFC r270802:
Only do the second pass over non-plt relocations when the first pass
found IFUNCs.

Approved by:	re (gjb)
</content>
</entry>
<entry>
<title>Merging of projects/armv6, part 2</title>
<updated>2012-08-15T03:07:41Z</updated>
<author>
<name>Oleksandr Tymoshenko</name>
<email>gonzo@FreeBSD.org</email>
</author>
<published>2012-08-15T03:07:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c9e95645f623367fe9195f15b5b833d2e4717c88'/>
<id>urn:sha1:c9e95645f623367fe9195f15b5b833d2e4717c88</id>
<content type='text'>
Handle TLS for ARMv6 and ARMv7
</content>
</entry>
<entry>
<title>Ensure we align the stack to 8 bytes in rtld.</title>
<updated>2012-08-04T05:30:20Z</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2012-08-04T05:30:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=782b05f96b15a2d92336dd0bd8fc06dbc4638312'/>
<id>urn:sha1:782b05f96b15a2d92336dd0bd8fc06dbc4638312</id>
<content type='text'>
This is not strictly required with the current ABI but will be when we
switch to the ARM EABI. The aapcs requires the stack to be 4 byte aligned
at all times and 8 byte aligned when calling a public subroutine where the
current ABI only requires sp to be a multiple of 4.
</content>
</entry>
<entry>
<title>Add GNU hash support for rtld.</title>
<updated>2012-04-30T13:31:10Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2012-04-30T13:31:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f62651920d526d8ef7a8ea66487e5bd1814a7a6f'/>
<id>urn:sha1:f62651920d526d8ef7a8ea66487e5bd1814a7a6f</id>
<content type='text'>
Based on dragonflybsd support for GNU hash by John Marino &lt;draco marino st&gt;
Reviewed by:	kan
Tested by:	bapt
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Fix several problems with our ELF filters implementation.</title>
<updated>2012-03-20T13:20:49Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2012-03-20T13:20:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=082f959ac8281d323f9289c45b769275e172c917'/>
<id>urn:sha1:082f959ac8281d323f9289c45b769275e172c917</id>
<content type='text'>
Do not relocate twice an object which happens to be needed by loaded
binary (or dso) and some filtee opened due to symbol resolution when
relocating need objects.  Record the state of the relocation
processing in Obj_Entry and short-circuit relocate_objects() if
current object already processed.

Do not call constructors for filtees loaded during the early
relocation processing before image is initialized enough to run
user-provided code.  Filtees are loaded using dlopen_object(), which
normally performs relocation and initialization.  If filtee is
lazy-loaded during the relocation of dso needed by the main object,
dlopen_object() runs too earlier, when most runtime services are not
yet ready.

Postpone the constructors call to the time when main binary and
depended libraries constructors are run, passing the new flag
RTLD_LO_EARLY to dlopen_object().  Symbol lookups callers inform
symlook_* functions about early stage of initialization with
SYMLOOK_EARLY.  Pass flags through all functions participating in
object relocation.

Use the opportunity and fix flags argument to find_symdef() in
arch-specific reloc.c to use proper name SYMLOOK_IN_PLT instead of
true, which happen to have the same numeric value.

Reported and tested by:	theraven
Reviewed by:	kan
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Add support for preinit, init and fini arrays.  Some ABIs, in</title>
<updated>2012-03-11T20:03:09Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2012-03-11T20:03:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=83aa9cc00c2d83d05a0efe7a1496d8aab4a153bb'/>
<id>urn:sha1:83aa9cc00c2d83d05a0efe7a1496d8aab4a153bb</id>
<content type='text'>
particular on ARM, do require working init arrays.

Traditional FreeBSD crt1 calls _init and _fini of the binary, instead
of allowing runtime linker to arrange the calls.  This was probably
done to have the same crt code serve both statically and dynamically
linked binaries.  Since ABI mandates that first is called preinit
array functions, then init, and then init array functions, the init
have to be called from rtld now.

To provide binary compatibility to old FreeBSD crt1, which calls _init
itself, rtld only calls intializers and finalizers for main binary if
binary has a note indicating that new crt was used for linking.  Add
parsing of ELF notes to rtld, and cache p_osrel value since we parsed
it anyway.

The patch is inspired by init_array support for DragonflyBSD, written
by John Marino.

Reviewed by:	kan
Tested by:	andrew (arm, previous version), flo (sparc64, previous version)
MFC after:	3 weeks
</content>
</entry>
<entry>
<title>Add thread-local storage support for ARM to rtld-elf</title>
<updated>2012-02-14T00:16:34Z</updated>
<author>
<name>Oleksandr Tymoshenko</name>
<email>gonzo@FreeBSD.org</email>
</author>
<published>2012-02-14T00:16:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dc3b6c3aa0d7d86596430cf284e0338577f47ea8'/>
<id>urn:sha1:dc3b6c3aa0d7d86596430cf284e0338577f47ea8</id>
<content type='text'>
Reviewed by:    cognet
Obtained from:  NetBSD
</content>
</entry>
<entry>
<title>Add support for STT_GNU_IFUNC and R_MACHINE_IRELATIVE GNU extensions to</title>
<updated>2011-12-12T11:03:14Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2011-12-12T11:03:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6be4b697152616e174e381a763ed2128eafca8a0'/>
<id>urn:sha1:6be4b697152616e174e381a763ed2128eafca8a0</id>
<content type='text'>
rtld on 386 and amd64. This adds runtime bits neccessary for the use
of the dispatch functions from the dynamically-linked executables and
shared libraries.

To allow use of external references from the dispatch function, resolution
of the R_MACHINE_IRESOLVE relocations in PLT is postponed until GOT entries
for PLT are prepared, and normal resolution of the GOT entries is finished.
Similar to how it is done by GNU, IRELATIVE relocations are resolved in
advance, instead of normal lazy handling for PLT.

Move the init_pltgot() call before the relocations for the object are
processed.

MFC after:	3 weeks
</content>
</entry>
<entry>
<title>When loading dso without PT_GNU_STACK phdr, only call</title>
<updated>2011-01-25T21:12:31Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2011-01-25T21:12:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cb38d4941c45e3c72c4b5b3fad87d297d950cf53'/>
<id>urn:sha1:cb38d4941c45e3c72c4b5b3fad87d297d950cf53</id>
<content type='text'>
__pthread_map_stacks_exec() on architectures that allow executable
stacks.

Reported and tested by:	marcel (ia64)
</content>
</entry>
<entry>
<title>Implement support for ELF filters in rtld. Both normal and auxillary</title>
<updated>2010-12-25T08:51:20Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2010-12-25T08:51:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8569deaf1cba0d732647f0dae7eb5af2ee5fae1b'/>
<id>urn:sha1:8569deaf1cba0d732647f0dae7eb5af2ee5fae1b</id>
<content type='text'>
filters are implemented.

Filtees are loaded on demand, unless LD_LOADFLTR environment variable
is set or -z loadfltr was specified during the linking. This forces
rtld to upgrade read-locked rtld_bind_lock to write lock when it
encounters an object with filter during symbol lookup.

Consolidate common arguments of the symbol lookup functions in the
SymLook structure.  Track the state of the rtld locks in the
RtldLockState structure. Pass local RtldLockState through the rtld
symbol lookup calls to allow lock upgrades.

Reviewed by:	kan
Tested by:	Mykola Dzham &lt;i levsha me&gt;, nwhitehorn (powerpc)
</content>
</entry>
</feed>
