diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-08-08 14:35:49 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-08-08 14:35:49 +0000 |
commit | 9cba52f0aedbb95671e8a14e3fd5ff98381ff2b0 (patch) | |
tree | dd82b29998103d7d8ba34351e6fc3a12dc0ed7ac /ldso/ldso/Makefile | |
parent | 4c69b9f793fc1eae9190d8ba26dba25db616272f (diff) |
Patch from Stefan Allius and Edie C. Dost to add SuperH
shared library support. This also adds some cleaner error
handling, which I (Erik) then ported over to x86 and arm.
In addition Stefan added the following fixes:
- in hash.c was the lvalue handling of global library functions wrong.
To fix this I had to change the prototype of _dl_find_hash. (==> TIS and
ELF spec. Vers. 1.2)
- in ldso.c was the order of the .init sections calls wrong. Before we call
the initialization code of a library we have to check that all dependend
libraries are already initialized. This can easily made by calling it in the
revers loading order. For this I added a previous pointer chain.
- in ldso.c the ELF magics wasn't checked fo PPC, MIPS and SH architecture
Diffstat (limited to 'ldso/ldso/Makefile')
-rw-r--r-- | ldso/ldso/Makefile | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/ldso/ldso/Makefile b/ldso/ldso/Makefile index 4100f82ff..ff1d9ea48 100644 --- a/ldso/ldso/Makefile +++ b/ldso/ldso/Makefile @@ -31,13 +31,35 @@ LDSO_FULLNAME=ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so # (i.e. where the shared library loader does all the heavy lifting) # Since this currently only saves about 300 bytes, I'm going to leave # it enabled... -XXFLAGS+= -DDL_TRACE +XXFLAGS+= -DLD_TRACE -# Enable this to enable debugging output from ld.so -#XXFLAGS+= -DDL_DEBUG -#XXFLAGS+= -DDL_DEBUG_SYMBOLS -#Enable this to never actually fixup symbols so you can watch each call... -#XXFLAGS+= -DDL_NEVER_FIXUP_SYMBOLS +# Enable this to enable all the code needed for debugging the runtime +# linking of an application using the LD_DEBUG environment variable: +# LD_DEBUG=token1,token2,.. prog +# enables diagnostics to the stderr. +# For now there are these tokens possible: +# bindings displays the resolve processing (function calls); detail shows the relocation patch +# detail provide more information for some options +# move display copy processings +# reloc display relocation processing; detail shows the relocation patch +# symbols display symbol table processing +# +# The additional environment variable: +# LD_DEBUG_OUTPUT=file +# redirects the diagnostics to an output file created using +# the specified name and the process id as a suffix. +# +# try this +# $ LD_DEBUG=binding,move,symbols,reloc,detail LD_DEBUG_OUTPUT=appname ./appname +# +#XXFLAGS+= -DSUPPORT_LD_DEBUG + +# Enable this for the very very early debugging. Really only useful +# for people porting to new architectures. +#XXFLAGS+= -DLD_DEBUG + +# Enable this to never actually fixup symbols... +#XXFLAGS+= -DLD_NEVER_FIXUP_SYMBOLS XXFLAGS+=-DUCLIBC_TARGET_PREFIX=\"$(TARGET_PREFIX)\" \ -DUCLIBC_DEVEL_PREFIX=\"$(DEVEL_PREFIX)\" \ |