<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec/rtld-elf/mips, 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>2015-04-28T12:48:30Z</updated>
<entry>
<title>MFC r281107: MIPS rtld: report missing symbol rather than segfaulting</title>
<updated>2015-04-28T12:48:30Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2015-04-28T12:48:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=391bd93d91f956b9017d58a1745432b35df88a78'/>
<id>urn:sha1:391bd93d91f956b9017d58a1745432b35df88a78</id>
<content type='text'>
  This is only an interim fix; MIPS should be using the MI code instead,
  which does not have this issue.
</content>
</entry>
<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>Before jumping to application's entry point set ra == pc in order</title>
<updated>2012-03-23T17:54:06Z</updated>
<author>
<name>Oleksandr Tymoshenko</name>
<email>gonzo@FreeBSD.org</email>
</author>
<published>2012-03-23T17:54:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bbc54af80edcfdcd8f2e61422d0fd9a2fe0addf5'/>
<id>urn:sha1:bbc54af80edcfdcd8f2e61422d0fd9a2fe0addf5</id>
<content type='text'>
    to let backtracing routine know to go no further.
</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>Use PTR_SUBU instead of subu (missed this one)</title>
<updated>2012-03-12T20:59:18Z</updated>
<author>
<name>Oleksandr Tymoshenko</name>
<email>gonzo@FreeBSD.org</email>
</author>
<published>2012-03-12T20:59:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0bf18978327f69c19a6ffa457c160d598034b930'/>
<id>urn:sha1:0bf18978327f69c19a6ffa457c160d598034b930</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use PTR_(ADD|SUB)U macrosses instead of hardcoded addu/subu</title>
<updated>2012-03-12T20:58:09Z</updated>
<author>
<name>Oleksandr Tymoshenko</name>
<email>gonzo@FreeBSD.org</email>
</author>
<published>2012-03-12T20:58:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7730e5971e2b5b925ada0052e40de0ede16e4650'/>
<id>urn:sha1:7730e5971e2b5b925ada0052e40de0ede16e4650</id>
<content type='text'>
Spotted by: juli
</content>
</entry>
<entry>
<title>- Although we pass first 4 arguments in registers, function callinf ABI requires</title>
<updated>2012-03-12T20:24:59Z</updated>
<author>
<name>Oleksandr Tymoshenko</name>
<email>gonzo@FreeBSD.org</email>
</author>
<published>2012-03-12T20:24:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=33ddd0f61a13ac323249f9a4afad7158596c9f7e'/>
<id>urn:sha1:33ddd0f61a13ac323249f9a4afad7158596c9f7e</id>
<content type='text'>
   space to be reserved for them in stack. _rtld() prologue saves a1 and a2 in
   this space.

- Whitespace cleanup while I'm at it
</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>- Switch to saving non-offseted pointer to TLS block in order too keep things simple</title>
<updated>2012-03-06T03:27:08Z</updated>
<author>
<name>Oleksandr Tymoshenko</name>
<email>gonzo@FreeBSD.org</email>
</author>
<published>2012-03-06T03:27:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0a0f480835897ef7d079a391e15598fdf338aae7'/>
<id>urn:sha1:0a0f480835897ef7d079a391e15598fdf338aae7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add handlers for TLS-related relocation entries</title>
<updated>2012-02-11T00:54:57Z</updated>
<author>
<name>Oleksandr Tymoshenko</name>
<email>gonzo@FreeBSD.org</email>
</author>
<published>2012-02-11T00:54:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b098345b9e05a59f3289a4f67c0a61b638f5d39f'/>
<id>urn:sha1:b098345b9e05a59f3289a4f67c0a61b638f5d39f</id>
<content type='text'>
</content>
</entry>
</feed>
