<feed xmlns='http://www.w3.org/2005/Atom'>
<title>grovel/src/ldso/x32, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>http://euandre.org/git/grovel/atom?h=main</id>
<link rel='self' href='http://euandre.org/git/grovel/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://euandre.org/git/grovel/'/>
<updated>2015-04-14T15:39:11Z</updated>
<entry>
<title>use hidden visibility for call from dlsym to internal __dlsym</title>
<updated>2015-04-14T15:39:11Z</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2015-04-14T15:39:11Z</published>
<link rel='alternate' type='text/html' href='http://euandre.org/git/grovel/commit/?id=72b25ddb77ca0974b6f448a4290d21154a221474'/>
<id>urn:sha1:72b25ddb77ca0974b6f448a4290d21154a221474</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dynamic linker bootstrap overhaul</title>
<updated>2015-04-13T07:04:42Z</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2015-04-13T06:56:26Z</published>
<link rel='alternate' type='text/html' href='http://euandre.org/git/grovel/commit/?id=f3ddd173806fd5c60b3f034528ca24542aecc5b9'/>
<id>urn:sha1:f3ddd173806fd5c60b3f034528ca24542aecc5b9</id>
<content type='text'>
this overhaul further reduces the amount of arch-specific code needed
by the dynamic linker and removes a number of assumptions, including:

- that symbolic function references inside libc are bound at link time
  via the linker option -Bsymbolic-functions.

- that libc functions used by the dynamic linker do not require
  access to data symbols.

- that static/internal function calls and data accesses can be made
  without performing any relocations, or that arch-specific startup
  code handled any such relocations needed.

removing these assumptions paves the way for allowing libc.so itself
to be built with stack protector (among other things), and is achieved
by a three-stage bootstrap process:

1. relative relocations are processed with a flat function.
2. symbolic relocations are processed with no external calls/data.
3. main program and dependency libs are processed with a
   fully-functional libc/ldso.

reduction in arch-specific code is achived through the following:

- crt_arch.h, used for generating crt1.o, now provides the entry point
  for the dynamic linker too.

- asm is no longer responsible for skipping the beginning of argv[]
  when ldso is invoked as a command.

- the functionality previously provided by __reloc_self for heavily
  GOT-dependent RISC archs is now the arch-agnostic stage-1.

- arch-specific relocation type codes are mapped directly as macros
  rather than via an inline translation function/switch statement.
</content>
</entry>
<entry>
<title>rename dynamic linker entry point from _start to _dlstart</title>
<updated>2014-06-20T04:25:12Z</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2014-06-20T04:25:12Z</published>
<link rel='alternate' type='text/html' href='http://euandre.org/git/grovel/commit/?id=3fa2eb2aba8d6b54dec53e7ad4c37e17392b166f'/>
<id>urn:sha1:3fa2eb2aba8d6b54dec53e7ad4c37e17392b166f</id>
<content type='text'>
the main motivation for this change is to aid in debugging. since the
main program's entry point is also named _start, it was difficult to
set breakpoints or quickly identify which _start execution stopped in.
</content>
</entry>
<entry>
<title>x32 port (diff against vanilla x86_64)</title>
<updated>2014-02-23T10:09:16Z</updated>
<author>
<name>rofl0r</name>
<email>retnyg@gmx.net</email>
</author>
<published>2014-01-07T21:53:38Z</published>
<link rel='alternate' type='text/html' href='http://euandre.org/git/grovel/commit/?id=664cd341921007cea52c8891f27ce35927dca378'/>
<id>urn:sha1:664cd341921007cea52c8891f27ce35927dca378</id>
<content type='text'>
</content>
</entry>
<entry>
<title>import vanilla x86_64 code as x32</title>
<updated>2014-02-23T10:07:18Z</updated>
<author>
<name>rofl0r</name>
<email>retnyg@gmx.net</email>
</author>
<published>2014-01-07T21:43:34Z</published>
<link rel='alternate' type='text/html' href='http://euandre.org/git/grovel/commit/?id=323272db175204b951f119dae4bd99ef05e20f13'/>
<id>urn:sha1:323272db175204b951f119dae4bd99ef05e20f13</id>
<content type='text'>
</content>
</entry>
</feed>
