Commit Graph

99 Commits

Author SHA1 Message Date
perry
0db47b5ca1 bare asm -> __asm 2005-12-24 21:51:51 +00:00
perry
ae6ae2c362 Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:56:41 +00:00
chs
ec3d29dac4 add some instructions at the top of rtld_entry() that use mprotect()
to make ld.so's data segment executable.  this is needed because the PLT
is in the data segment and we actually honor the execute permissions now.
2004-07-15 03:00:21 +00:00
thorpej
e8cc3884de Rename __LDPGSZ to AOUT_LDPGSZ, to accurately reflect what it is. 2002-12-10 17:14:02 +00:00
simonb
11823a584d Only warn on double-word displacements for displacements less
than -0x20000000, not -0x1f000000.  Quells the endless stream
of
	ld: Double word displacement -535682276, out of range
style warnings that have annoyed my once too often.
2002-11-22 12:40:20 +00:00
grant
6742cb1812 sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:36:17 +00:00
matt
0ce5ca145f Change to use a register prefix. 2002-02-24 01:06:18 +00:00
wiz
1fd7eeefcd "than" instead of "then". 2001-11-21 19:14:19 +00:00
aymeric
336e1d4aa6 Add hack bits to be able to compile a cross-linker for 8K-pages m68k targets 2001-07-25 12:21:33 +00:00
matt
d7e8330189 Remove RELOC_SYMBOLICS_THROUGH_JMPSLOT as it's always the case 2000-05-28 01:53:05 +00:00
ragge
f4d411a4a4 Make longjmp work with dynamic linking. From Matt Thomas.
Fixes PR#7671.
1999-06-28 17:28:56 +00:00
gwr
f9a07c51b8 Allow reading SunOS/4.1.1 object files. Fixes pr/7363 1999-04-12 00:52:44 +00:00
ragge
f285208477 Need a small prototype. (Where did it go?) 1999-03-13 22:15:25 +00:00
ragge
6831afc23a unbalanced `#endif', pointed out by Ken Wellsch. 1999-03-13 17:09:51 +00:00
tv
ff6c8ce557 Add ld.so hacks for arm32, and reenable ld.aout_so on arm32. As is well
known, XXX this needs a real fix.
1999-02-27 03:34:05 +00:00
matthias
655a41ea73 Fix from Phil Budne (add missing prototypes) to make ld.so compile again
on the pc532.
1999-01-15 07:48:07 +00:00
itohy
85da239ef8 Fix byte order swapping for cross linker. 1999-01-05 10:02:20 +00:00
is
7871bc1564 Add a prototype for the _cachectl() trap call stup in mdprologue.S. 1998-12-21 12:16:16 +00:00
veego
4bf0cd6592 Include err.h to fix compile warnings. 1998-12-20 17:43:37 +00:00
pk
259f05dc84 Re-arrange to hide unneeded functions when building the run-time linker.
Pick up ld(1) implementation definitions.
1998-12-17 20:14:44 +00:00
pk
76ae27e1f8 Pick up ld(1) implementation definitions. 1998-12-17 14:29:50 +00:00
pk
5f5db2f16f Re-arrange to hide unneeded functions when building the run-time linker. 1998-12-17 10:54:34 +00:00
pk
631ebffde3 Layout & compiler warnings. 1998-12-15 21:23:57 +00:00
pk
ad3e459220 NetBSD -> __NetBSD__ 1998-12-15 21:22:52 +00:00
mycroft
dedf21f286 Put back code to use pc-relative branches in the PLT, and avoid doing cache
flushes.
1998-12-03 15:56:51 +00:00
mycroft
26fce3548b Use the `first' argument to md_fix_jmpslot(). 1998-12-03 15:46:28 +00:00
matt
ce394ac326 Add hook to convert some DISP32 relocs to BASREL through a GOT entry.
[XXX not perfect since gotslot are allocated on a per-symbol basis but
not a per-symbol & addend tuple.  This makes impossible to have separate
GOT entries to ___sF (stdin), ___sF+88 (stdout), and ___sF+176 (stderr)]
1998-10-31 09:04:29 +00:00
matt
931b784473 Remove reference to unused include file. 1998-10-31 08:59:58 +00:00
matt
8f7b610683 More fixes and optimizations for VAX shared library support. Including
one that makes vfork work.
1998-10-23 00:51:36 +00:00
matt
4f1a79cfbd Back out change to md_make_gotreloc which added 4 arguement of got_t *.
Add argument to md_fix_jmpslot indicating whether this the first (i.e
tranfer) jmpslot or not.  Add better support for VAX (the VAX can support
pure text code; let ld that advantage of it).  Checking in verified and
working versions of rtld VAX support routines.
1998-10-19 03:09:31 +00:00
itohy
9d79a50f6a Correct return value of md_midcompat(). 1998-10-17 17:08:21 +00:00
matt
bb27fa210f Get shared libraries a lot closer to working. 1998-10-12 01:33:35 +00:00
matthias
78f9c9bd25 remove some vm_offset_t fallout. 1998-10-03 20:04:01 +00:00
pk
0a97faa040 Assign my copyrights to TNF. 1998-09-05 13:08:38 +00:00
matt
60f624ddb7 Fix some obvious bugs. 1998-08-26 15:32:02 +00:00
matt
4da3f7cfd8 Add external symbol for __PROCEDURE_LINKAGE_TABLE_. Modify arguments
to md_make_gotreloc for VAX'es sake.
1998-08-26 14:37:40 +00:00
matt
fb6da63fa6 More changes for shareable libraries and PIC code 1998-08-21 01:03:48 +00:00
matt
0111660e53 Get md.c to compile again. Get mdprologue.S to assemble. [Now at least
ld and rtld compile and link.]
1998-08-20 15:12:02 +00:00
matt
74018d8df6 Untested(!!) beginning of VAX a.out shared library support. This is a work
in progress.
1998-08-18 18:46:16 +00:00
mycroft
9ae60c44af More cruft. 1998-08-05 04:25:03 +00:00
mycroft
7625579cb3 GC some cruft. 1998-08-05 04:21:51 +00:00
mycroft
5d231ae38e Don't reset the reloc_index when we patch a jmpslot. We don't need to, and
this kluges around some cache issues.
1998-07-27 07:48:21 +00:00
cgd
10cc9f3b70 RCS Id police 1998-01-05 22:00:34 +00:00
mark
919c9148f3 Add support for PIC code.
Add support for ld.so
1997-10-17 21:25:42 +00:00
christos
776130f509 Handle relocation of misaligned symbols. Handle all three cases by the same
macro for clarity.
1997-10-14 17:17:52 +00:00
matthias
a57d8745e7 * Truncate the cinv table. It was twice as long as necessary as a result
of an earlier version of th code.
* Really align the cinv table modulo 0x200. Thank's to Ian for telling me
  where I goofed up.
1997-07-11 23:39:56 +00:00
matthias
df05f3a8b1 * Flush the icache from user mode. The original code and the idea came from
Ian Dall. I just did some slight optimizations.
1997-07-09 19:32:51 +00:00
ws
79b6fe9805 Add machine dependent code for NetBSD/powerpc 1996-11-03 18:02:42 +00:00
mark
48d30b1294 Fixed NetBSD tag. 1996-08-21 18:43:29 +00:00
phil
cc13fe98cb Fix for dynamically linked functions returning structs. PR#2586/Pfaller 1996-07-31 06:22:41 +00:00