Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update.
2004-03-10  Ulrich Drepper  <drepper@redhat.com>

	* include/libc-symbols.h: Define attribute_compat_text_section and
	attribute_compat_data_section.
	* io/ftw.c: Mark compat code with attribute_compat_text_section.
	* libio/iofopncook.c: Likewise.
	* libio/oldfileops.c: Likewise.
	* libio/oldiofclose.c: Likewise.
	* libio/oldiofdopen.c: Likewise.
	* libio/oldiofgetpos.c: Likewise.
	* libio/oldiofgetpos64.c: Likewise.
	* libio/oldiofopen.c: Likewise.
	* libio/oldiofsetpos.c: Likewise.
	* libio/oldiofsetpos64.c: Likewise.
	* libio/oldiopopen.c: Likewise.
	* libio/oldpclose.c: Likewise.
	* libio/oldtmpfile.c: Likewise.
	* nptl/forward.c: Likewise.
	* nss/getXXbyYY_r.c: Likewise.
	* nss/getXXent_r.c: Likewise.
	* posix/tst-vfork1.c: Likewise.
	* stdlib/canonicalize.c: Likewise.
	* stdlib/old_atexit.c: Likewise.
	* sysdeps/generic/glob.c: Likewise.
	* sysdeps/posix/posix_fallocate64.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
	* sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.

	* sysdeps/unix/sysv/linux/i386/syscalls.list: vm86@@GLIBC_2.3.4
	should be the default symbol. Having none misses the point.
  • Loading branch information
Ulrich Drepper committed Mar 10, 2004
1 parent 3f2fb22 commit 4a381a8
Show file tree
Hide file tree
Showing 35 changed files with 145 additions and 45 deletions.
41 changes: 41 additions & 0 deletions ChangeLog
@@ -1,3 +1,44 @@
2004-03-10 Ulrich Drepper <drepper@redhat.com>

* include/libc-symbols.h: Define attribute_compat_text_section and
attribute_compat_data_section.
* io/ftw.c: Mark compat code with attribute_compat_text_section.
* libio/iofopncook.c: Likewise.
* libio/oldfileops.c: Likewise.
* libio/oldiofclose.c: Likewise.
* libio/oldiofdopen.c: Likewise.
* libio/oldiofgetpos.c: Likewise.
* libio/oldiofgetpos64.c: Likewise.
* libio/oldiofopen.c: Likewise.
* libio/oldiofsetpos.c: Likewise.
* libio/oldiofsetpos64.c: Likewise.
* libio/oldiopopen.c: Likewise.
* libio/oldpclose.c: Likewise.
* libio/oldtmpfile.c: Likewise.
* nptl/forward.c: Likewise.
* nss/getXXbyYY_r.c: Likewise.
* nss/getXXent_r.c: Likewise.
* posix/tst-vfork1.c: Likewise.
* stdlib/canonicalize.c: Likewise.
* stdlib/old_atexit.c: Likewise.
* sysdeps/generic/glob.c: Likewise.
* sysdeps/posix/posix_fallocate64.c: Likewise.
* sysdeps/unix/sysv/linux/i386/alphasort64.c: Likewise.
* sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
* sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
* sysdeps/unix/sysv/linux/i386/msgctl.c: Likewise.
* sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
* sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
* sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
* sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
* sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
* sysdeps/unix/sysv/linux/i386/semctl.c: Likewise.
* sysdeps/unix/sysv/linux/i386/shmctl.c: Likewise.
* sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.

* sysdeps/unix/sysv/linux/i386/syscalls.list: vm86@@GLIBC_2.3.4
should be the default symbol. Having none misses the point.

2004-03-09 Ulrich Drepper <drepper@redhat.com>

* stdlib/qsort.c (_quicksort): Initialize first stack element [BZ #16].
Expand Down
7 changes: 7 additions & 0 deletions include/libc-symbols.h
Expand Up @@ -759,4 +759,11 @@ for linking")
/* Get some dirty hacks. */
#include <symbol-hacks.h>

/* Move compatibility symbols out of the way by placing them all in a
special section. */
#define attribute_compat_text_section \
__attribute__ ((section (".text.compat")))
#define attribute_compat_data_section \
__attribute__ ((section (".data.compat")))

#endif /* libc-symbols.h */
3 changes: 2 additions & 1 deletion io/ftw.c
@@ -1,5 +1,5 @@
/* File tree walker functions.
Copyright (C) 1996-2001, 2002, 2003 Free Software Foundation, Inc.
Copyright (C) 1996-2003, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
Expand Down Expand Up @@ -784,6 +784,7 @@ versioned_symbol (libc, NFTW_NEW_NAME, NFTW_NAME, GLIBC_2_3_3);
int NFTW_OLD_NAME (const char *, NFTW_FUNC_T, int, int);

int
attribute_compat_text_section
NFTW_OLD_NAME (path, func, descriptors, flags)
const char *path;
NFTW_FUNC_T func;
Expand Down
2 changes: 2 additions & 0 deletions libio/iofopncook.c
Expand Up @@ -195,6 +195,7 @@ _IO_FILE * _IO_old_fopencookie (void *cookie, const char *mode,
_IO_cookie_io_functions_t io_functions);

static _IO_off64_t
attribute_compat_text_section
_IO_old_cookie_seek (fp, offset, dir)
_IO_FILE *fp;
_IO_off64_t offset;
Expand Down Expand Up @@ -237,6 +238,7 @@ static const struct _IO_jump_t _IO_old_cookie_jumps = {
};

_IO_FILE *
attribute_compat_text_section
_IO_old_fopencookie (cookie, mode, io_functions)
void *cookie;
const char *mode;
Expand Down
17 changes: 15 additions & 2 deletions libio/oldfileops.c
Expand Up @@ -115,6 +115,7 @@ extern int errno;


void
attribute_compat_text_section
_IO_old_file_init (fp)
struct _IO_FILE_plus *fp;
{
Expand All @@ -141,6 +142,7 @@ _IO_old_file_init (fp)
}

int
attribute_compat_text_section
_IO_old_file_close_it (fp)
_IO_FILE *fp;
{
Expand Down Expand Up @@ -168,6 +170,7 @@ _IO_old_file_close_it (fp)
}

void
attribute_compat_text_section
_IO_old_file_finish (fp, dummy)
_IO_FILE *fp;
int dummy;
Expand All @@ -182,6 +185,7 @@ _IO_old_file_finish (fp, dummy)
}

_IO_FILE *
attribute_compat_text_section
_IO_old_file_fopen (fp, filename, mode)
_IO_FILE *fp;
const char *filename;
Expand Down Expand Up @@ -231,6 +235,7 @@ _IO_old_file_fopen (fp, filename, mode)
}

_IO_FILE *
attribute_compat_text_section
_IO_old_file_attach (fp, fd)
_IO_FILE *fp;
int fd;
Expand All @@ -250,6 +255,7 @@ _IO_old_file_attach (fp, fd)
}

_IO_FILE *
attribute_compat_text_section
_IO_old_file_setbuf (fp, p, len)
_IO_FILE *fp;
char *p;
Expand All @@ -271,6 +277,7 @@ static int old_do_write __P ((_IO_FILE *, const char *, _IO_size_t));
Then mark FP as having empty buffers. */

int
attribute_compat_text_section
_IO_old_do_write (fp, data, to_do)
_IO_FILE *fp;
const char *data;
Expand All @@ -280,8 +287,8 @@ _IO_old_do_write (fp, data, to_do)
? 0 : EOF;
}

static
int
static int
attribute_compat_text_section
old_do_write (fp, data, to_do)
_IO_FILE *fp;
const char *data;
Expand Down Expand Up @@ -315,6 +322,7 @@ old_do_write (fp, data, to_do)
}

int
attribute_compat_text_section
_IO_old_file_underflow (fp)
_IO_FILE *fp;
{
Expand Down Expand Up @@ -379,6 +387,7 @@ _IO_old_file_underflow (fp)
}

int
attribute_compat_text_section
_IO_old_file_overflow (f, ch)
_IO_FILE *f;
int ch;
Expand Down Expand Up @@ -430,6 +439,7 @@ _IO_old_file_overflow (f, ch)
}

int
attribute_compat_text_section
_IO_old_file_sync (fp)
_IO_FILE *fp;
{
Expand Down Expand Up @@ -464,6 +474,7 @@ _IO_old_file_sync (fp)
}

_IO_off64_t
attribute_compat_text_section
_IO_old_file_seekoff (fp, offset, dir, mode)
_IO_FILE *fp;
_IO_off64_t offset;
Expand Down Expand Up @@ -650,6 +661,7 @@ _IO_old_file_seekoff (fp, offset, dir, mode)
}

_IO_ssize_t
attribute_compat_text_section
_IO_old_file_write (f, data, n)
_IO_FILE *f;
const void *data;
Expand All @@ -674,6 +686,7 @@ _IO_old_file_write (f, data, n)
}

_IO_size_t
attribute_compat_text_section
_IO_old_file_xsputn (f, data, n)
_IO_FILE *f;
const void *data;
Expand Down
3 changes: 2 additions & 1 deletion libio/oldiofclose.c
@@ -1,4 +1,4 @@
/* Copyright (C) 1993, 1995, 1997-2001, 2002 Free Software Foundation, Inc.
/* Copyright (C) 1993, 1995, 1997-2002, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -35,6 +35,7 @@
#endif

int
attribute_compat_text_section
_IO_old_fclose (fp)
_IO_FILE *fp;
{
Expand Down
4 changes: 3 additions & 1 deletion libio/oldiofdopen.c
@@ -1,4 +1,5 @@
/* Copyright (C) 1993,94,97,99,2000,2002,2003 Free Software Foundation, Inc.
/* Copyright (C) 1993,94,97,99,2000,2002,2003,2004
Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -40,6 +41,7 @@
#endif

_IO_FILE *
attribute_compat_text_section
_IO_old_fdopen (fd, mode)
int fd;
const char *mode;
Expand Down
3 changes: 2 additions & 1 deletion libio/oldiofgetpos.c
@@ -1,4 +1,4 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2002, 2003
/* Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2002, 2003, 2004
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Expand Down Expand Up @@ -33,6 +33,7 @@
#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)

int
attribute_compat_text_section
_IO_old_fgetpos (fp, posp)
_IO_FILE *fp;
_IO_fpos_t *posp;
Expand Down
3 changes: 2 additions & 1 deletion libio/oldiofgetpos64.c
@@ -1,4 +1,4 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2002, 2003
/* Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2002, 2003, 2004
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Expand Down Expand Up @@ -33,6 +33,7 @@
#if SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)

int
attribute_compat_text_section
_IO_old_fgetpos64 (fp, posp)
_IO_FILE *fp;
_IO_fpos64_t *posp;
Expand Down
4 changes: 3 additions & 1 deletion libio/oldiofopen.c
@@ -1,4 +1,5 @@
/* Copyright (C) 1993,1997,1999,2000,2002,2003 Free Software Foundation, Inc.
/* Copyright (C) 1993,1997,1999,2000,2002,2003,2004
Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -36,6 +37,7 @@


_IO_FILE *
attribute_compat_text_section
_IO_old_fopen (filename, mode)
const char *filename;
const char *mode;
Expand Down
3 changes: 2 additions & 1 deletion libio/oldiofsetpos.c
@@ -1,4 +1,4 @@
/* Copyright (C) 1993, 1995, 1997, 1998, 1999, 2000, 2002, 2003
/* Copyright (C) 1993, 1995, 1997, 1998, 1999, 2000, 2002, 2003, 2004
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Expand Down Expand Up @@ -32,6 +32,7 @@
#include <shlib-compat.h>
#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)
int
attribute_compat_text_section
_IO_old_fsetpos (fp, posp)
_IO_FILE *fp;
const _IO_fpos_t *posp;
Expand Down
3 changes: 2 additions & 1 deletion libio/oldiofsetpos64.c
@@ -1,4 +1,4 @@
/* Copyright (C) 1993, 1995, 1997, 1998, 1999, 2000, 2002, 2003
/* Copyright (C) 1993, 1995, 1997, 1998, 1999, 2000, 2002, 2003, 2004
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Expand Down Expand Up @@ -33,6 +33,7 @@
#if SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)

int
attribute_compat_text_section
_IO_old_fsetpos64 (fp, posp)
_IO_FILE *fp;
const _IO_fpos64_t *posp;
Expand Down
3 changes: 3 additions & 0 deletions libio/oldiopopen.c
Expand Up @@ -120,6 +120,7 @@ unlock (void *not_used)
#endif

_IO_FILE *
attribute_compat_text_section
_IO_old_proc_open (fp, command, mode)
_IO_FILE *fp;
const char *command;
Expand Down Expand Up @@ -202,6 +203,7 @@ _IO_old_proc_open (fp, command, mode)
}

_IO_FILE *
attribute_compat_text_section
_IO_old_popen (command, mode)
const char *command;
const char *mode;
Expand Down Expand Up @@ -236,6 +238,7 @@ _IO_old_popen (command, mode)
}

int
attribute_compat_text_section
_IO_old_proc_close (fp)
_IO_FILE *fp;
{
Expand Down
3 changes: 2 additions & 1 deletion libio/oldpclose.c
@@ -1,4 +1,4 @@
/* Copyright (C) 1998,2000 Free Software Foundation, Inc.
/* Copyright (C) 1998,2000, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -34,6 +34,7 @@
#include <errno.h>

int
attribute_compat_text_section
__old_pclose (fp)
FILE *fp;
{
Expand Down
3 changes: 2 additions & 1 deletion libio/oldtmpfile.c
@@ -1,4 +1,4 @@
/* Copyright (C) 1991, 1993, 1996-2000, 2003 Free Software Foundation, Inc.
/* Copyright (C) 1991,1993,1996-2000,2003,2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -29,6 +29,7 @@
If we couldn't generate a unique filename or the file couldn't
be opened, NULL is returned. */
FILE *
attribute_compat_text_section
__old_tmpfile (void)
{
char buf[FILENAME_MAX];
Expand Down

0 comments on commit 4a381a8

Please sign in to comment.