Commit Graph

79 Commits

Author SHA1 Message Date
christos 9d493e3dc8 remove useless include; asm.h is not useful for c files. our current assumption
is that stuff in cdefs.h is duplicated in asm.h.
2017-01-14 15:50:24 +00:00
uwe 2bd409d71f ___start is __dso_hidden, so use CALL_DATUM_LOCAL and drop the PIC
prologue from __start.
2016-08-29 21:27:03 +00:00
christos a0c7fda095 fix pic code; otherwise we generate text relocations. 2016-08-28 13:50:25 +00:00
christos e2d23afe0f Undo previous; the lossage is more basic. 2016-01-24 16:47:32 +00:00
christos 470f85c6c7 Alpha needs _KERNTYPES 2016-01-24 16:27:38 +00:00
matt 44371503dd Make sure .init and .fini are word (4byte) aligned. 2015-05-01 21:35:56 +00:00
matt 6cf6fe02a9 New files for Userland support of UCB RISC-V (both 32-bit and 64-bit) 2014-09-19 17:36:24 +00:00
matt 27620987b8 New files for OR1K support 2014-09-03 19:34:25 +00:00
matt beb9c6d1b5 Preliminary files for AARCH64 (64-bit ARM) support.
Enough for a distribution build.
2014-08-10 05:47:35 +00:00
joerg 353aedd819 Make EHABI optional. 2014-05-06 16:02:10 +00:00
joerg 39f1409e2e __do_global_ctors_aux and __do_global_ctors_aux must be used locally, so
mark them as hidden.
2014-03-16 11:41:30 +00:00
cherry 27f396ba32 Add crtstuff for ia64. Compile tested only 2014-03-14 18:15:02 +00:00
matt f99069ca40 Use _XENTRY 2014-03-06 19:05:59 +00:00
matt 22332fd4bf Use _ENTRY 2014-02-27 18:11:08 +00:00
matt 96ed0d69f5 Use the CALL() macro. 2014-02-27 18:01:51 +00:00
matt a877c70108 Add powerpc64 support 2014-02-27 16:47:48 +00:00
joerg d26da565f7 Drop .fpu. Discussed with Matt. 2013-12-20 15:35:48 +00:00
matt 36a2626fcd Make sure t9 ($25) is properly set before calling ___start 2013-12-08 06:32:36 +00:00
joerg 4d12bfcd15 Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
2013-09-12 15:36:14 +00:00
matt 26dbb44c7a Define ELF_NOTE_MARCH_DESC for when running non-eabi in compat_netbsd32 2013-09-10 22:00:01 +00:00
matt b4939ef9a5 Add support for a NetBSD MARCH elf note to record the MACHINE_ARCH for
which a program was compiled.
2013-09-10 16:45:33 +00:00
matt 8c08c8dda2 mips .eh_frame is writable 2013-09-05 00:28:11 +00:00
matt 85b4461aa6 bic sp not allowed in thumb (even with thumb2) 2013-09-05 00:27:38 +00:00
matt e32a84e219 Thumbify 2013-08-21 03:03:02 +00:00
matt 64e75f2480 Alpha needs crtfm.o for USE_COMPILERCRTSTUFF=no 2013-08-05 13:38:35 +00:00
martin c5c422fa26 In .fini invoke destructors (fix copy & pasto) 2013-07-27 13:07:06 +00:00
matt fa03729f71 Use jbsr and add END(__start) 2013-07-26 19:49:19 +00:00
martin 6dae3ba8c7 Simplify to new ___start() signature.
Seems to fix PR port-m68k/48076.
2013-07-26 18:47:23 +00:00
matt 2c3a3e1c7e Deal with m68010 not having bsrl so usr jsr on !__pic__ 2013-07-19 06:26:41 +00:00
matt bfbfd7bbc3 s/bsrl/jsr/ and let gas figure it out 2013-07-18 18:43:04 +00:00
skrll 3aa460b612 Add crtstuff for hppa. Lightly tested. 2013-07-13 18:52:35 +00:00
matt 2b0b9e5db4 Use pc-relative branch in crt0.S
Add crtend.S and crtbegin.h (uses pc-relative branches as well).
2013-07-11 17:07:35 +00:00
matt 7d7a3799d0 Add crtstuff for alpha. Compile tested only. 2013-07-11 16:40:27 +00:00
matt 9993694db9 Make this work for N64 as well. 2013-07-11 16:23:40 +00:00
martin 724aa133a7 Add support for sparc and sparc64 2013-07-11 06:57:15 +00:00
matt dfa5980290 Add END(func) so gdb doesn't get so confused. 2013-07-10 23:30:45 +00:00
matt 3e1a908f3c Fix another bneq -> beql botch 2013-07-10 22:55:40 +00:00
matt b32e808ac8 Add a ELFSIZE define 2013-07-10 15:05:46 +00:00
matt cf0e8a20c0 Fix logic inversion. 2013-07-10 14:27:01 +00:00
matt 1729cd5b7e For O32, don't save $gp on the stack, save $s0 instead and just keep $gp
in $s0.
2013-06-30 08:00:34 +00:00
matt 350cb9bc6c Switch arm, earm, powerpc to use crtbegin.c
Use -fpie for crtbegin.
2013-06-27 21:24:39 +00:00
matt 47068b9c70 Deal with O32 callling sequences. 2013-06-25 16:51:14 +00:00
matt 83cc2631c1 Initialize $gp 2013-06-25 16:47:47 +00:00
matt 86ffe64b94 Use .long not .word
Use _ENTRY
[with these changes, the crtstuff passes its ATF tests.]
2013-06-25 00:30:07 +00:00
matt 611f5afec5 Use (target1) for .init/fini array entries 2013-06-24 20:56:18 +00:00
matt e9cee35b87 Make sure dwarf_eh_object is 8 words long. 2013-06-24 14:53:42 +00:00
matt 08257f91d2 Like the rest, make __DTOR_LIST__ start with a -1
Make sure dwarf_eh_object is 8 words long.
2013-06-24 14:49:55 +00:00
matt 21ba1833d3 Make dwarf_eh_object is 8 words long 2013-06-24 14:49:13 +00:00
matt 2ad451b6ca Add a common crtbegin.c file and use a machine dependent crtbegin.h to
fill in .init/.fini.
Add mips support for USE_COMPILERCRTSTUFF=no (compiled only)
2013-06-22 02:37:09 +00:00
matt be5ef6fb34 USE_COMPILERCRTSTUFF=no support for vax. 2013-06-21 15:54:08 +00:00