Commit Graph

6603 Commits

Author SHA1 Message Date
martin 286956e76d Use __errno in the _REENTRANT case (pointed out by Valeriy E. Ushakov).
While there, indent some delay slot instructions.
2006-01-08 12:05:33 +00:00
kleink 6012e94867 Xref pthread_sigmask(3). 2006-01-07 20:11:30 +00:00
uwe 5cee9283d0 Provide _REENTRANT version of errno = 0; 2006-01-06 20:38:01 +00:00
uwe 0e79e13e9c Use JUMP_CERROR instead of messing with errno directly.
Simplify.
2006-01-06 07:07:34 +00:00
uwe 3a310524fb Drop unnecessary nops. 2006-01-06 06:19:20 +00:00
uwe ec3c02b8ff Simplify. 2006-01-06 05:23:46 +00:00
uwe 6ea6e06ed1 Change !_REENTRANT && !PIC case to use r4 too. 2006-01-06 05:14:39 +00:00
uwe 026eb7b69e Open code _SYSCALL_NOERROR to shave off a memory load and a branch.
Makes this congruent to vforks.  Add .size directive.
2006-01-06 05:11:29 +00:00
uwe 73375bbc4d Add .size directive. 2006-01-06 04:38:10 +00:00
uwe 553d6ca3ed Use JUMP_CERROR instead of messing with errno directly.
Simplify.  Add WARN_REFERENCES.
2006-01-06 04:30:33 +00:00
uwe dc6b340eff Simplify. 2006-01-06 04:08:47 +00:00
uwe 577f0b80c0 Simplify. Add WARN_REFERENCES. 2006-01-06 04:05:55 +00:00
uwe b46734f0ca Change cerror to take errno in r4, instead of r0.
In PIC code fetch cerror address from GOT to avoid
unresolved text relocations in shared libraries.
Hide the code to jump to cerror inside JUMP_CERROR macro.
Change syscall code to use JUMP_CERROR.
Die text relocations! DIE!
2006-01-06 03:58:31 +00:00
uwe 40336aba3d Make "When set is null" into a separate paragraph for better readability. 2006-01-06 02:30:08 +00:00
uwe b1648afca2 This can be simplified to RSYSCALL(__syscall), no special treatment necessary. 2006-01-06 01:57:38 +00:00
uwe 63e9eca689 This can be simplified to PSEUDO(exect,execve). 2006-01-06 01:53:30 +00:00
uwe 63f84ca820 This can be simplified to RSYSCALL(syscall), no special treatment necessary. 2006-01-06 01:27:23 +00:00
uwe 0831944cce Use PLT for PIC call to __errno to avoid text reloc in the shared library.
Add .size directive.
2006-01-05 23:10:35 +00:00
rpaulo b583fcc049 #include <stdio.h> in the example. 2006-01-05 19:45:29 +00:00
uwe 3259b3637a Use PLT for PIC call to _exit to avoid text reloc in the shared library.
Add .size directive.
2006-01-05 19:28:50 +00:00
uwe a92c062160 Use PIC_PROLOGUE_NOSAVE in long jumps, where we don't need to preserve r12.
While here, swap the order in which r4 and r5 saved on the stack so
that r4 is restored further away from its first use.
2006-01-05 19:21:37 +00:00
uwe 0396244ccc Use macros from <machine/asm.h>. Add some comments.
Same PIC object code.  Almost the same non-PIC object code (b/c of
s/jsr/jmp/ to _exit).
2006-01-05 18:20:29 +00:00
uwe 7581f11837 Add .size directive. 2006-01-05 05:02:33 +00:00
uwe c8cec240a7 Oops^2. Init pointer to the saved registers area. 2006-01-05 04:55:48 +00:00
uwe a2be2d8bd9 Oops, correct numeric label in branch. 2006-01-05 04:41:16 +00:00
uwe 55be1ea1cf Use PLT for PIC calls to avoids text relocs in the shared library.
Use constants from <machine/setjmp.h> for better readability.
Provide .size directives.
2006-01-05 04:38:39 +00:00
uwe f859e17a02 Use PLT for PIC calls to avoids text relocs in the shared library.
Use constants from <machine/setjmp.h> for better readability.
Provide .size directives.
2006-01-05 04:23:18 +00:00
uwe 979bf3279f Oops, supply correct label for __longjmp14 .size directive. 2006-01-05 04:18:01 +00:00
uwe 0aa62ed4eb Use PLT for PIC calls to avoids text relocs in the shared library.
Use constants from <machine/setjmp.h> for better readability.
Provide .size directives.
2006-01-05 03:40:34 +00:00
uwe f814031bbe Use PLT for PIC calls to avoids text relocs in the shared library.
Use constants from <machine/setjmp.h> for better readability.
Provide .size directives.
2006-01-05 03:03:52 +00:00
uwe 89723f208b PIC_PROLOGUE doesn't take temp register argument, adjust. 2006-01-05 02:46:15 +00:00
uwe 6170f5973a Use SET_ENTRY_SIZE macro to hide verbose .size arithmetic. 2006-01-05 02:04:41 +00:00
uwe 932cacd22a Use constants from <machine/setjmp.h> for better readability. 2006-01-05 00:56:21 +00:00
uwe 2217927fda Add .size directives.
While here, indent instructions in the rts delay slots.
2006-01-05 00:18:10 +00:00
uwe fa0fe9c883 Use PLT for PIC calls. Makes the called functions overridable and
avoids text reloc in the shared library.
Same non-PIC code generated.
2006-01-04 22:32:06 +00:00
uwe 1a1aa0fb5a Took me some time to figure that getcontext does _UC_MACHINE_INTRV(oucp) = 0
for us, so add a comment.  While here use official _UC_MACHINE_SET_PC
macro in another comment.
2006-01-04 20:47:24 +00:00
uwe 8238ccbbf0 Use macros from <machine/asm.h>. s/r15/sp/. Use cpp-safe label
names.  Add comments.  Same object code is generated.
2006-01-04 19:13:48 +00:00
elad e77db80a44 Revert back to revision 1.40, as requested by cube@.
Unbreaks KDE.
2005-12-31 12:32:30 +00:00
agc 740a95c15f Add Todd Miller's ftw(3) and nftw(3) file-tree walking functionality,
from OpenBSD.

Bump libc minor to 136.
2005-12-30 23:07:31 +00:00
chs 89a8f7b8c9 change errors returned for various operations on "/" to conform to SUSv3.
as discussed on tech-kern some time back.
2005-12-27 17:24:07 +00:00
perry fd18408b9a u_intN_t -> uintN_t 2005-12-26 19:40:14 +00:00
uwe e3ebee56f2 Be consistent about macro indentation.
Indent delay slot instructions.
Whitespace changes only, same binary code produced.
2005-12-25 11:08:35 +00:00
perry ce666bb8ce __asm__ -> __asm 2005-12-24 23:10:08 +00:00
perry d5e310b85d oops. __volatile -> volatile 2005-12-24 21:42:32 +00:00
perry 46359204cf __inline__ -> inline 2005-12-24 21:42:02 +00:00
perry f05974f443 __asm__ -> __asm, __volatile__ -> __volatile 2005-12-24 21:41:01 +00:00
perry 4e11af46bc Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 21:11:15 +00:00
elad 0c73d40610 Allow last component to be non-existing again. I broke this behavior for
no apparent good reason in revision 1.39.

This is what broke systrace's filename normalization.

Go back to original behavior as in revision 1.35: return resolved name,
but also set errno to ENOENT.
2005-12-22 23:29:23 +00:00
christos 66feb1b71d move to the common tree. 2005-12-22 01:24:52 +00:00
christos b2b13a51a4 moved to common. 2005-12-21 00:26:54 +00:00