Commit Graph

154 Commits

Author SHA1 Message Date
Ulrich Drepper
660404d72b Dynamic linking definitions for HPPA. 2004-04-17 22:54:23 +00:00
Ulrich Drepper
32e5b41b17 (__hppa_init_bootstrap_fdesc_table):
Initialze the fdesc table for the generic code.
(elf_machine_dynamic): Use asm version.
(elf_machine_load_addresss): Simplify asm by calling
elf_machine_dynamic.
(elf_machine_fixup_plt): Correct comment.
(elf_machine_profile_fixup_plt): New.
(elf_machine_runtime_setup): Check PLT exists, if lazy=1  process
normally, else relocate all the absolute entries.
(RTLD_START): Fix comments.
(TRAMPOLINE_TEMPLATE): Reformat assembly, add return pointer for
calls to profile_fixup.
(ELF_MACHINE_SIZEOF_JMP_SLOT, DL_STATIC_FUNCTION_ADDRESS,
DL_PLATFORM_INIT): Define.
(DL_FUNCTION_ADDRESS): Remove.
(dl_platform_init): New.
(elf_machine_rela): Use generic fdesc code, and process all COPY
relocations. Use __attribute__((always_inline)).
(elf_machine_rela_relative): Add sanity checks, remove IPLT
processing, print error message in default case. Use
__attribute__((always_inline)).
(elf_machine_lazy_rel): Use __attribute__((always_inline)).
2004-04-17 22:53:29 +00:00
Ulrich Drepper
87ffc6ec79 (feupdateenv): Use only sw[0] and call feraiseexcept. 2004-04-17 22:51:43 +00:00
Ulrich Drepper
e98a88227f (feholdexcept): Fix order of fp status register loads. 2004-02-21 02:10:01 +00:00
Ulrich Drepper
c1f024c3e1 (fesetexceptflag): Set enable bits not raised exception bits. 2003-12-18 03:58:26 +00:00
Ulrich Drepper
2da72a511e (feraiseexcept): Add delayed exception flushing, FE_UNDERFLOW is DBL_MIN/3.0,
FE_INEXACT is triggered by M_PI/69.69 converted to single precision.
2003-12-18 03:58:09 +00:00
Ulrich Drepper
1bff455e8a (feupdateenv): Read raised exception bits, OR with envp, pass to fesetenv. 2003-12-18 03:57:50 +00:00
Ulrich Drepper
c5cf6f4a3d (fesetenv): Use asm 'ma,' completer, and gcc '+r' constraint. 2003-12-18 03:57:31 +00:00
Ulrich Drepper
4923dcf1bd (feholdexcept): Use asm 'ma,' completer, and gcc '+r' constraint. 2003-12-18 03:57:14 +00:00
Ulrich Drepper
78f9fd6419 (fegetenv): use asm 'ma,' completer, and gcc '+r' constraint. 2003-12-18 03:56:50 +00:00
Ulrich Drepper
4db359168e (feclearexcept): Right shift FE_ALL_EXCEPT before complimenting. 2003-12-18 03:56:15 +00:00
Ulrich Drepper
69751d3f42 DL_LOOKUP_ADDRESS must clear PLABEL32 bits, define DL_AUTO_FUNCTION_ADDRESS and
DL_STATIC_FUNCTION_ADDRESS, DL_DT_INIT_ADDRESS and DL_DT_FINI_ADDRESS use the
previous two macros.
2003-12-18 03:53:47 +00:00
Ulrich Drepper
ba0b86d09f (_dl_symbol_address): Use _dl_make_ftpr, remove const qualifier for map.
(_dl_function_address): Removed.
2003-12-18 03:53:22 +00:00
Ulrich Drepper
866956e5c3 Not needed anymore. 2003-12-18 03:53:02 +00:00
Ulrich Drepper
1294f72885 Configuration for hppa function descriptor handling. 2003-12-18 03:52:28 +00:00
Ulrich Drepper
dfc6dfb9a6 Add dl-symaddr and dl-fptr to the correct build strings. 2003-12-18 03:51:49 +00:00
Ulrich Drepper
aca984867e Undef JUMPTARGET before use. 2003-10-15 05:31:42 +00:00
Roland McGrath
6f12dcc7b8 2003-10-10 Carlos O'Donell <carlos@baldric.uwo.ca>
* sysdeps/hppa/Makefile (CFLAGS-malloc.c): Variable removed.
2003-10-11 01:28:59 +00:00
Ulrich Drepper
de251c974b [GLIBC_2.2]: Add __clz_tab. 2003-09-24 03:14:27 +00:00
Ulrich Drepper
e62e873e95 Add libgcc-compat.c. 2003-09-24 03:14:14 +00:00
Ulrich Drepper
131d66906b libgcc compatibility code. 2003-09-24 03:13:56 +00:00
Ulrich Drepper
f32742b088 Include compat code in build. 2003-09-24 03:13:28 +00:00
Alexandre Oliva
5027ae109a * elf/dynamic-link.h (elf_machine_rel, elf_machine_rela,
elf_machine_rel_relative, elf_machine_rela_relative): Don't assume
reloc_addr is aligned.
* sysdeps/alpha/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/arm/dl-machine.h (elf_machine_rel, elf_machine_rela,
elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
* sysdeps/cris/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/hppa/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/i386/dl-machine.h (elf_machine_rel, elf_machine_rela,
elf_machine_rel_relative, elf_machine_rela_relative): Adjust.
* sysdeps/ia64/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/m68k/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/mips/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/powerpc/powerpc64/dl-machine.h
(elf_machine_rela_relative, elf_machine_rela): Adjust.
* sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative):
* sysdeps/sh/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
* sysdeps/x86_64/dl-machine.h (elf_machine_rela,
elf_machine_rela_relative): Adjust.
2003-07-31 06:33:52 +00:00
Roland McGrath
fad367110e 2003-03-23 Jakub Jelinek <jakub@redhat.com>
* sysdeps/alpha/fpu/libm-test-ulps: Update.
	* sysdeps/arm/libm-test-ulps: Update.
	* sysdeps/hppa/fpu/libm-test-ulps: Update.
	* sysdeps/ia64/fpu/libm-test-ulps: Update.
	* sysdeps/mips/fpu/libm-test-ulps: Update.
	* sysdeps/powerpc/nofpu/libm-test-ulps: Update.
	* sysdeps/powerpc/fpu/libm-test-ulps: Update.
	* sysdeps/sparc/sparc32/fpu/libm-test-ulps: Update.
	* sysdeps/sparc/sparc64/fpu/libm-test-ulps: Update.
	* sysdeps/sh/sh4/fpu/libm-test-ulps: Update.
	* sysdeps/s390/fpu/libm-test-ulps: Update.
	* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2003-03-23 00:52:10 +00:00
Ulrich Drepper
db16023193 Use libc_hidden_def(name) instead of strong_alias (name, __GI_name). 2002-12-31 20:37:32 +00:00
Ulrich Drepper
044758323b Add __GI__setjmp alias. 2002-12-31 09:35:36 +00:00
Roland McGrath
f8a26bed6f 2002-12-08 Roland McGrath <roland@redhat.com>
* elf/Makefile (tests): Uncomment tst-array[123].
	* Makeconfig (CPPFLAGS-.oS): Add -DLIBC_NONSHARED=1.
	* csu/elf-init.c: New file.
	* csu/Makefile (routines, static-only-routines): Add elf-init.
	* sysdeps/alpha/elf/start.S: Use __libc_csu_init in place of _init
	and __libc_csu_fini in place of _fini.
	* sysdeps/arm/elf/start.S: Likewise.
	* sysdeps/cris/elf/start.S: Likewise.
	* sysdeps/hppa/elf/start.S: Likewise.
	* sysdeps/i386/elf/start.S: Likewise.
	* sysdeps/ia64/elf/start.S: Likewise.
	* sysdeps/m68k/elf/start.S: Likewise.
	* sysdeps/mach/hurd/powerpc/static-start.S: Likewise.
	* sysdeps/mips/elf/start.S: Likewise.
	* sysdeps/powerpc/powerpc32/elf/start.S: Likewise.
	* sysdeps/powerpc/powerpc64/elf/start.S: Likewise.
	* sysdeps/s390/s390-32/elf/start.S: Likewise.
	* sysdeps/s390/s390-64/elf/start.S: Likewise.
	* sysdeps/sh/elf/start.S: Likewise.
	* sysdeps/sparc/sparc32/elf/start.S: Likewise.
	* sysdeps/sparc/sparc64/elf/start.S: Likewise.
	* sysdeps/x86_64/elf/start.S: Likewise.
2002-12-09 20:37:24 +00:00
Roland McGrath
b7d5c13d9d 2002-12-02 Carlos O'Donell <carlos@baldric.uwo.ca>
* sysdeps/hppa/fpu/fesetround.c (fesetround): Use ~FE_DOWNWARD so both
	bits of RM are cleared.
2002-12-03 02:50:52 +00:00
Roland McGrath
c4eca64005 2002-11-11 Randolf Chung <tausq@debian.org>
* sysdeps/hppa/Makefile (CFLAGS-rtld.c): New variable.
	Set -mdisable-fpregs for this file.
2002-11-19 06:41:05 +00:00
Roland McGrath
1a65a64534 2002-11-11 Randolf Chung <tausq@debian.org>
* sysdeps/hppa/fpu/libm-test-ulps: New file (generated).
2002-11-19 06:40:57 +00:00
Ulrich Drepper
01c4c1c9aa Avoid unterminated string literals. 2002-10-03 00:17:29 +00:00
Roland McGrath
692e7ab8e1 2002-02-08 Randolph Chung <tausq@debian.org>
* sysdeps/hppa/elf/start.S: Define __data_start.
2002-10-01 19:42:02 +00:00
Ulrich Drepper
926092e807 Define macro DO_ELF_MACHINE_REL_RELATIVE for 'elf_machine_rel_relative' with
extra map parameter required by HPPA.
(elf_machine_rela_relative): Add plt relocation changes.
2002-09-28 04:34:00 +00:00
Roland McGrath
e6697827c9 2002-09-21 Carlos O'Donell <carlos@baldric.uwo.ca>
* sysdeps/hppa/abort-instr.h: New file.
2002-09-23 03:30:34 +00:00
Ulrich Drepper
280ad607c7 Add libm_hidden_ver. 2002-09-10 01:26:37 +00:00
Ulrich Drepper
1b718f413e Don't use multi-line string literals. 2002-06-20 06:23:14 +00:00
Andreas Jaeger
c5f8b1a262 (elf_machine_rela): Cast reloc_addr to an integer type before performing
bit operations on it.
2002-06-06 14:16:07 +00:00
Ulrich Drepper
7862ef805b Dummy file fo rnot needed __clz_tab table. 2002-03-14 20:44:11 +00:00
Ulrich Drepper
ceb7d0bbbe Use rtld_progrname instead of _dl_argv[0]. 2002-03-01 09:43:36 +00:00
Ulrich Drepper
dca9c7304b Add HAVE_VISIBILITY_ATTRIBUTE and HAVE_SDATA_SECTION. 2002-02-28 22:36:33 +00:00
Ulrich Drepper
c577723005 (RTLD_START): Call _dl_init_internal instead of _dl_init. 2002-02-03 00:29:15 +00:00
Ulrich Drepper
ae6cfd8bc1 Move all symbols to GLIBC_PRIVATE. 2002-02-01 23:14:50 +00:00
Ulrich Drepper
f71d7f5726 Move global variables for SHARED code in struct _rtld_global. Export
this struct, remove all exports for the signal variables.
2002-02-01 01:32:06 +00:00
Ulrich Drepper
b72b3cc5af GCC frame description for PA. 2001-11-16 01:07:57 +00:00
Ulrich Drepper
09d4f65308 Fix usage of new _dl_signal_error() format. 2001-09-08 17:16:44 +00:00
Ulrich Drepper
a3a247a8b1 Forward declare struct link_map. 2001-09-08 17:13:52 +00:00
Ulrich Drepper
5c6029e5c0 (elf_machine_lookup_noplt_p, elf_machine_lookup_noexec_p): Remove.
(elf_machine_type_class): Define.
2001-08-26 22:26:38 +00:00
Ulrich Drepper
638c8659a7 (elf_machine_rela_relative): Rename from elf_machine_rel_relative. 2001-08-24 14:51:50 +00:00
Ulrich Drepper
85bdccdbd2 Define elf_machine_rel_relative. Minor optimizations. 2001-08-24 08:43:21 +00:00
Andreas Jaeger
f01ec4673b Put under LGPL v2.1. 2001-07-07 10:13:33 +00:00
Andreas Jaeger
3214b89b32 Update to LGPL v2.1. 2001-07-06 04:56:23 +00:00
Ulrich Drepper
69ab1cbb29 (elf_machine_rela): handle relocs at unaligned address. 2001-06-19 00:42:10 +00:00
Andreas Jaeger
5d7fedc998 HPPA setjmp implementation. 2001-06-06 11:57:49 +00:00
Andreas Jaeger
1e48d4f660 Reformat asm statements to remove new gcc warning about multi-line strings. 2001-06-06 11:52:59 +00:00
Andreas Jaeger
13906e12b9 Add .type for the entry point. 2001-06-05 06:20:45 +00:00
Ulrich Drepper
ee1bb98bde Add -DMALLOC_ALIGNMENT=16 to compiler command line for malloc.c. 2001-04-26 00:03:25 +00:00
Ulrich Drepper
f2e1be7965 Information about stack layout for HPPA. 2001-04-25 20:17:26 +00:00
Ulrich Drepper
aad4bb3a11 Clear the exception flags, not the enable flags. 2001-04-25 18:27:55 +00:00
Ulrich Drepper
c9ae5095a4 (RTLD_START): Set up dp with DT_PLTGOT value from application so that
constructors in non-PIC libs work.
(RTLD_START): _dl_init now returns a function pointer, hence load the jump
address and gp from the function pointer before jumping.
2001-04-24 19:38:55 +00:00
Ulrich Drepper
c358f9f787 (_dl_start_address): Rename to _dl_function_address. 2001-04-22 03:22:20 +00:00
Ulrich Drepper
9c56436673 (ELF_MACHINE_START_ADDRESS): Define. 2001-04-22 03:22:03 +00:00
Ulrich Drepper
e40ba2ccb8 Add _dl_function_address. 2001-04-22 03:21:47 +00:00
Ulrich Drepper
85ff0834bb (_dl_function_address): Prototype.
(DL_FUNCTION_ADDRESS): Define.
(DL_DT_INIT_ADDRESS): Define.
(DL_DT_FINI_ADDRESS): Define.
2001-04-22 03:21:34 +00:00
Ulrich Drepper
ee6d867525 (LDFLAGS-c_pic.os): Define.
(CFLAGS-.os): Remove.
2001-04-20 06:03:07 +00:00
Ulrich Drepper
70d533e66b Change dlt reg save to r3 and generate unwind info by hand. 2001-04-20 05:58:49 +00:00
Ulrich Drepper
773b640096 Replace use of old output functions with the new ones. 2001-02-28 06:35:24 +00:00
Ulrich Drepper
e8fcfc26e4 Include <float.h>. 2001-01-31 06:34:29 +00:00
Ulrich Drepper
f7319991c9 Additional files to distribute in sysdeps/hppa. 2000-10-27 06:38:28 +00:00
Ulrich Drepper
f1dba30859 (elf_machine_matches_host): Parameter is now pointer to ELF header. 2000-10-20 17:04:28 +00:00
Ulrich Drepper
fb0f005337 Linux/HPPA specific fenv definitions. 2000-10-15 03:37:33 +00:00
Ulrich Drepper
2db1ce26da Linux/HPPA specific fetestexcept implementation. 2000-10-15 03:36:28 +00:00
Ulrich Drepper
32b9e00b12 Linux/HPPA specific fesetexceptflag implementation. 2000-10-15 03:36:16 +00:00
Ulrich Drepper
84e1099f78 Linux/HPPA specific feraiseexcept implementation. 2000-10-15 03:36:03 +00:00
Ulrich Drepper
9bb9060790 Linux/HPPA specific fegetexceptflag implementation. 2000-10-15 03:35:48 +00:00
Ulrich Drepper
318eb46070 Linux/HPPA specific feupdateenv implementation. 2000-10-15 03:35:14 +00:00
Ulrich Drepper
8c34028d3e Linux/HPPA specific fesetround implementation. 2000-10-15 03:35:05 +00:00
Ulrich Drepper
1d53eb01ef Linux/HPPA specific fesetenv implementation. 2000-10-15 03:34:57 +00:00
Ulrich Drepper
1f8d3bd8e7 Linux/HPPA specific feholdexcept implementation. 2000-10-15 03:34:49 +00:00
Ulrich Drepper
0ea85d5c2f Linux/HPPA specific fegetround implementation. 2000-10-15 03:34:41 +00:00
Ulrich Drepper
1b2b6656a9 Linux/HPPA specific fegetexcept implementation. 2000-10-15 03:34:32 +00:00
Ulrich Drepper
839151ff97 Linux/HPPA specific fegetenv implementation. 2000-10-15 03:34:22 +00:00
Ulrich Drepper
8ebd5d830b Linux/HPPA specific fedisableexcept implementation. 2000-10-15 03:34:04 +00:00
Ulrich Drepper
e7cbd45172 Linux/HPPA specific feclearexcept implementation. 2000-10-15 03:33:51 +00:00
Ulrich Drepper
1f07ba01b9 Linux/HPPA specific ld.so startup code. 2000-10-15 03:33:33 +00:00
Ulrich Drepper
aa4ee8e227 Linux/HPPA specific startup code. 2000-10-15 03:33:24 +00:00
Ulrich Drepper
06fbf18c58 Additional directories for HPPA1.1 machines. 2000-10-15 03:25:29 +00:00
Ulrich Drepper
c6d53d276e HP/PA specific setjmp header definitions. 2000-10-15 03:25:11 +00:00
Ulrich Drepper
a4f4ba75e9 HP/PA specific memusage definitions. 2000-10-15 03:24:53 +00:00
Ulrich Drepper
0edd90f645 HP/PA specific setjmp implementation. 2000-10-15 03:24:40 +00:00
Ulrich Drepper
1ca92d75ff Add support for ASM_LINE_SEP. 2000-10-15 03:24:14 +00:00
Ulrich Drepper
acc97172a1 Don't use %r19 (linkage table pointer). 2000-10-15 03:22:34 +00:00
Ulrich Drepper
257c3b5223 HP/PA specific call frame definition. 2000-10-15 03:21:39 +00:00
Ulrich Drepper
00186dff49 HP/PA specific handling of symbol references. 2000-10-15 03:21:04 +00:00
Ulrich Drepper
3eb9e70628 HP/PA specific dynamic linker internals. 2000-10-15 03:20:01 +00:00
Ulrich Drepper
6f8cfde3af HP/PA specific lookup configuration. 2000-10-15 03:19:45 +00:00
Ulrich Drepper
256c860a4c HP/PA specific function pointer handling for ld.so. 2000-10-15 03:18:05 +00:00
Ulrich Drepper
472803265c HP/PA specific MP add_n implementation. 2000-10-15 03:17:46 +00:00
Ulrich Drepper
12ffa85366 HP/PA specific __longjmp implementation. 2000-10-15 03:17:31 +00:00
Ulrich Drepper
6d049e72a0 HP/PA specific Version definitions. 2000-10-15 03:17:19 +00:00
Ulrich Drepper
5b1705c098 HP/PA specific Makefile. 2000-10-15 03:16:57 +00:00