diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-05-14 10:59:09 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-05-14 10:59:09 +0000 |
commit | 297b6bb585320c9ee650258fb3d3e7e812cdc5a8 (patch) | |
tree | 5f2ef14066df9438b6fae31b949a03b5f82cf356 /libc/sysdeps/linux/frv/crtreloc.c | |
parent | cd411309b5af27b1a02f324174d1caad98bc0927 (diff) |
Alexandre Oliva writes:
Here are a number of minor changes to FR-V-specific bits of the uClibc
port:
- I've adjusted the definition of _dl_mmap to cope with the fact that
there will be a definition for an mmap2-only system.
- We don't have COPY relocs, so optimize the copy reloc-related code
away.
- Change the page size to 16KiB, to match the ABI spec, and not a
stale value I'd copied from a linker config file. Oops.
- Fix error handling in clone and vfork; parts of the changes by David
Howells <dhowells@redhat.com>
- Rearrange includes in crtreloc.c.
- Change the API of __syscall_error, to reduce code size.
- Improve __syscall_return in terms of code size, so as to enable
tail-calling of __syscall_error, at least within libc. Ideally,
__syscall_error should be hidden within libc.so, but this didn't
work because of libdl. I haven't looked into why, and figured I'd
leave it visible for now.
- Rename enumerators and macros in sys/ucontext.h to reduce namespace
pollution.
Diffstat (limited to 'libc/sysdeps/linux/frv/crtreloc.c')
-rw-r--r-- | libc/sysdeps/linux/frv/crtreloc.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/frv/crtreloc.c b/libc/sysdeps/linux/frv/crtreloc.c index 38af68c7b..32e9ee7be 100644 --- a/libc/sysdeps/linux/frv/crtreloc.c +++ b/libc/sysdeps/linux/frv/crtreloc.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2003 Free Software Foundation, Inc. +/* Copyright (C) 2003, 2004 Free Software Foundation, Inc. written by Alexandre Oliva <aoliva@redhat.com> This file is part of the GNU C Library. @@ -17,13 +17,9 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#define _GNU_SOURCE -#include <link.h> - +#define _GNU_SOURCE 1 #include <sys/types.h> - -#include <elf.h> -#include <bits/elf-fdpic.h> +#include <link.h> /* This file is to be compiled into crt object files, to enable executables to easily self-relocate. */ |