fair
af23ff4dbb
appease gcc -Wuninitialized
2005-06-08 00:19:18 +00:00
he
7ed57630be
Initialize a bunch of local variables in _rtld_relocate_nonplt_self().
...
Found by -Wuninitialized while compiling for newsmips.
Reviewed by lukem.
2005-06-07 09:20:19 +00:00
chs
7bbdd188e1
appease gcc -Wuninitialized on hp700.
2005-06-05 19:08:28 +00:00
lukem
3ed9ffcae1
Explicitly prefix ld(1) options in LDFLAGS with "-Wl," rather than
...
using the ${LDFLAGS:@F@-Wl,$F@} make substitution because that breaks
if LDFLAGS is already set.
2005-06-04 16:17:17 +00:00
lukem
a12d17494d
appease gcc -Wuninitialized
2005-06-01 14:14:55 +00:00
skrll
9c5ec319c5
Support LD_BIND_NOW on sh3..
2005-05-31 19:30:38 +00:00
skrll
13901ecdef
Support LD_BIND_NOW for alpha.
2005-05-25 13:39:46 +00:00
skrll
504512d318
Copyright maintenance.
2005-05-21 06:43:39 +00:00
martin
0a1196da3e
Add LD_BIND_NOW support for sparc and remove some relocation types that
...
are not supposed to happen in 32bit code.
From Nick Hudson.
2005-01-09 14:58:15 +00:00
martin
995d8a8e4b
Add support for unaligned relocs on sparc, from PR 26858.
...
Should also fix PR 25901 and PR 18296.
2005-01-05 09:18:53 +00:00
martin
35130888e4
Add LD_BIND_NOW support for sparc64.
2005-01-05 09:16:03 +00:00
mycroft
ac7236712a
ELF32_ST_TYPE -> ELF_ST_TYPE
2004-12-17 10:53:27 +00:00
skrll
38fb01be3a
Apply fixes from Charles:
...
- Fix how _rtld_relocate_nonplt_self deals with REL32 relocations.
- Change the assert so that it is correct for binutils 2.14 and 2.15.
There are still problems with the libraries generated with binutils 2.15,
but at least ld.elf_so doesn't crash.
2004-12-15 10:26:29 +00:00
uwe
255de8f40e
Preserve r2 in _rtld_bind_start - in r2 functions that return
...
aggregate types are passed the address of the memory area to store the
returned result to.
Fixes PR port-sh3/26949.
2004-09-14 21:34:01 +00:00
rearnsha
3fa803b523
Check the type of symbols; if it's a Thumb function, then set the Thumb
...
bit in the relocated value (JUMP_SLOT, ABS32 & GLOB_DAT).
2004-08-21 11:14:07 +00:00
rearnsha
c3e148044f
Use BX if available.
2004-08-21 11:12:03 +00:00
skrll
701ae47cdf
Fix the dynamic linker for hppa using ELF.
...
Lazy binding doesn't work 100% of the time so force immediate binding.
One possible reason is that the PLT stub blows away r20 which the
compiler might not take into account.
2004-05-17 13:16:02 +00:00
skrll
8431fb3c4c
Wrap a couple of lines to <80 columns
2004-05-14 11:59:14 +00:00
skrll
c788a1a535
Whitespace.
2004-05-14 11:11:02 +00:00
mhitch
b6825b1e42
The -symbolic flag in gcc 2.95.3 is not passed to the linker, which is
...
required. Restore the -Bsymbolic option in LDFLAGS on the vax. Fixes
the problem with ld.elf_so mentioned on port-vax.
2004-04-28 02:04:56 +00:00
skrll
4d30716d36
Remove the millicode hack - its not needed anymore.
...
Get the entry point right.
2004-02-23 21:20:40 +00:00
skrll
b5330c98c7
Add the standard XXX about CPPFLAGS and -fpic here.
2004-02-21 16:02:06 +00:00
skrll
d93f13855a
Move common LDFLAGS into Makefile from arch/*/Makefile.inc
2004-02-21 15:56:03 +00:00
skrll
151426159b
Whitespace.
2004-02-20 20:58:24 +00:00
enami
074a9e8fee
Salvage the instruction to save the pointer to ps_strings for later use
...
so that setproctitle() works again. The problem reported by Naoki Fukaumi
on japanese mailing list.
Approved by: Ross Harvey
2004-02-18 23:04:49 +00:00
simonb
28817edd35
Restore handling of reloc entries that point to unaligned locations
...
that seems to have disappeared in rev 1.34.
Thanks to Jason Thorpe for suggesting where to look.
Fixes the simple test case in PR port-mips/23366.
2003-11-19 19:41:57 +00:00
matt
fd1caff7c2
Update to new reality. XXX _rtld_bind still needs to be written.
2003-10-06 16:08:35 +00:00
mycroft
65ed3bdcdd
Make the effect of the hack clearer.
2003-09-24 10:25:26 +00:00
mycroft
7242c1114c
One more tweak...
2003-09-24 10:18:52 +00:00
mycroft
7b234fd232
Make the comment a little more accurate.
2003-09-24 09:59:45 +00:00
mycroft
89ea37c60a
Temporary workaround for some binutils/ld lossage. See the comment for more
...
information.
2003-09-24 09:55:35 +00:00
mrg
88bb1d9b3b
include <string.h> or <stdlib.h> for all prototypes
2003-07-26 15:04:38 +00:00
skrll
5f573ab68d
ANSIfy and de-__P().
2003-07-24 10:12:25 +00:00
skrll
ddc9322f3b
Support immediate binding on arm.
2003-07-21 15:34:35 +00:00
skrll
619dee76f6
Correct the in_plt parameter of a couple of _rtld_find_symdef calls.
...
The mips_reloc.c case is a no-op as _rtld_symlook_obj ignores in_plt for
MIPS.
OK'ed by Charles.
2003-07-17 13:56:32 +00:00
marcus
fae2567c9b
Removed unused function.
2003-07-05 20:48:39 +00:00
tsutsui
0e65101f60
Add function prototype declarations.
2003-07-05 18:18:51 +00:00
marcus
a4878b4349
Bugfix: Don't pick addend both from reloc and contents at the same time.
2003-07-02 15:29:34 +00:00
marcus
6aeeb40d4a
Updated to work with current rtld code.
2003-06-30 00:50:46 +00:00
petrov
458dbd70ac
Fix alignment problem in debug output.
...
Happens only under RTLD_DEBUG_RELOC.
2003-05-23 20:13:50 +00:00
scw
0b8f02edad
Handle unaligned relocations, and RELATIVE relocs with non-zero addends.
...
This gets binaries linked against libstdc++ working (FSVO "working").
2003-04-21 11:54:46 +00:00
scw
e6b13790fa
SH5 needs __HAVE_FUNCTION_DESCRIPTORS defined in order for ld.elf_so
...
to resolve SHmedia function pointers correctly.
2003-03-26 14:46:32 +00:00
scw
d174ad2eab
Add support for shared libraries/dynamically linked binaries on sh5.
...
With the latest SuperH toolchain, NetBSD/evbsh5 can now
run with a fully dynamic userland (modulo a few remaining
gremlins affecting a couple of binaries).
2003-03-25 13:11:53 +00:00
mycroft
7cbba1750d
Shorten rtld_start() by 2 instructions or 8 bytes, and make it not use GOT
...
entries.
2003-03-02 22:56:14 +00:00
mycroft
d2fd5f837d
Shorten rtld_start() slightly -- there's a base-relative _DYNAMIC pointer at
...
the beginning of the GOT, so we don't need an extra one here. Also, remove a
bogus comment -- we do in fact have to do fixups, because there are pointers in
ld.elf_so's data segment that need to be relocated.
2003-03-02 22:03:40 +00:00
mycroft
33131cb294
Update copyright.
2003-03-01 15:14:59 +00:00
mycroft
9939b38056
Eliminate GOT usage in rtld_start() on this platform, too.
2003-02-28 22:37:35 +00:00
mycroft
9cb7d16b11
Similar to other rela platforms, do not use any GOT entries (other than the
...
first entry, which is a special case) in rtld_start, because they could be
all 0s. Instead we use the difference between the real _DYNAMIC address
(which we can determine on 68k with a "lea (%pc,_DYNAMIC),..." and the
base-relative one (at the beginning of the GOT) to figure out the relocation
offset.
Not needed for binutils-current, but I might as well fix it now.
2003-02-28 07:06:16 +00:00
mycroft
eea1001a73
Adjust for the fact that the GOT is all 0s in new binutils -- do the trick of
...
disassembling a call to _DYNAMIC to determine its real address, and using the
first entry of the GOT as its base-relative address.
It's evil, but it works.
2003-02-27 05:39:42 +00:00
mycroft
c42fd7b479
Revert previous change.
2003-02-21 01:12:56 +00:00