genode/os/src/lib/ldso
Alexander Boettcher 47ef3bb1cb NOVA: Fix ldso test for 64bit
The generic parent_cap.cc overwrote the beginning of the data segment with
to much. Reserved are solely 16 byte, for 64bit we use however 32byte.

Actually, the parent_cap copying is not required at all. The parent cap
selector is at a fixed define place, so that no exported symbols are required
for determination of the parent_cap.

Remove it.
2012-08-14 10:19:54 +02:00
..
arch NOVA: Fix ldso test for 64bit 2012-08-14 10:19:54 +02:00
arm Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
contrib Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
include Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
startup Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
x86_32 Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
x86_64 Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
dl_extensions.h Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
environ.cc Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
err.cc Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
file.cc Add an 'executable' flag to 'Rm_session::attach()' 2012-04-20 11:21:19 +02:00
file.h Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
ldso_types.c Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
ldso.ld Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
lock.cc Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
main.c Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
platform.c Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
README Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
rtld_dummies.c Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
stdio.cc Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
stdlib.cc Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
string.cc Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
symbol.map Add missing unwind code to cxx lib 2012-07-16 14:54:19 +02:00
target.inc Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
test.cc Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00

This directory contains the port of the dynamic linker (ldso) from FreeBSD.


Usage
-----

To build a shared library instead of a regular static library, you just need to
declare 'SHARED_LIB = yes' in the library-description file.  When doing so, a
'<libname>.lib.so' file will be generated and installed in the
'<build-dir>/bin/' directory.  For building an executable that uses a shared
library, no special precautions are needed. The build system will automatically
detect the use of shared libraries, concludes that the binary must be
dynamically linked, and will use the correct linker script.  When loading a
dynamically linked program, the dynamic linker 'lsdo' and all used shared
objects must be loaded as well.

Debugging dynamic binaries with GDB stubs
-----------------------------------------

! # start GDB with binary to debug
! gdb <path to binary>
!
! # break in main routine
! b main
!
! # inspect loaded shared libraries
! info sharedlibrary
!
! # load shared symbols of shared libaries
! share
!
! # from here you can debug within libraries

:Known issues:

GDB 7.2 has a regression bug in its line information parser. These issue has
been fixed with version 7.3.