about summary refs log tree commit diff
path: root/src/internal/dynlink.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-09-17 17:18:09 +0000
committerRich Felker <dalias@aerifal.cx>2015-09-17 17:18:09 +0000
commit301335a80b85f12c018e4acf1a2c28615e119f8d (patch)
treef3b4c73836d6851db917cfe7b551e25cac6912ee /src/internal/dynlink.h
parent6fc30c2493fcfedec89e45088bea87766a1e3286 (diff)
downloadmusl-301335a80b85f12c018e4acf1a2c28615e119f8d.tar.gz
musl-301335a80b85f12c018e4acf1a2c28615e119f8d.tar.xz
musl-301335a80b85f12c018e4acf1a2c28615e119f8d.zip
begin refactoring load address computations in dynamic linker
for ordinary ELF with fixed segment displacements, load address
computation is simply adding the base load address. but for FDPIC,
each segment has its own load address, and virtual addresses need to
be adjusted according to the segment they fall in. abstracting this
computation is the first step to making the dynamic linker ready for
FDPIC.

for this first commit, a macro is used rather than a function in order
to facilitate correctness checking. I have verified that the generated
code does not change on my i386 build.
Diffstat (limited to 'src/internal/dynlink.h')
0 files changed, 0 insertions, 0 deletions