Messages in this thread Patch in this message |  | | Date | Sat, 9 Nov 1996 09:26:18 +0100 (MET) | From | "Michael L. Galbraith" <> | Subject | Re: objdump -k -q -o 0xC0100000 in 2.1.7 |
| |
Thank you very much for this patch. I just pressed the return key to send the following patch to vger :) figures that as soon as I do, in comes the right answer. Was the inline assembler for htonl and friends taken out due to some problem? I verified that in 2.0.24 it does go in. I am presently running libc-5.4.11 compiled after making these changes.
*** in.h.org Sat Nov 9 07:42:06 1996 --- in.h Sat Nov 9 07:42:37 1996 *************** *** 115,124 **** #define INADDR_ALLHOSTS_GROUP 0xe0000001 /* 224.0.0.1 */ #define INADDR_MAX_LOCAL_GROUP 0xe00000ff /* 224.0.0.255 */ - #ifdef __KERNEL__ /* <asm/byteorder.h> contains the htonl type stuff.. */ #include <asm/byteorder.h> /* Some random defines to make it easier in the kernel.. */ #define LOOPBACK(x) (((x) & htonl(0xff000000)) == htonl(0x7f000000)) --- 115,124 ---- #define INADDR_ALLHOSTS_GROUP 0xe0000001 /* 224.0.0.1 */ #define INADDR_MAX_LOCAL_GROUP 0xe00000ff /* 224.0.0.255 */ /* <asm/byteorder.h> contains the htonl type stuff.. */ #include <asm/byteorder.h> + + #ifdef __KERNEL__ /* Some random defines to make it easier in the kernel.. */ #define LOOPBACK(x) (((x) & htonl(0xff000000)) == htonl(0x7f000000)) *** ipc.h.org Sat Nov 9 08:31:25 1996 --- ipc.h Sat Nov 9 08:31:10 1996 *************** *** 2,7 **** --- 2,8 ---- #define _LINUX_IPC_H #include <linux/types.h> + #include <asm/ipc.h> #define IPC_PRIVATE ((__kernel_key_t) 0) On Fri, 8 Nov 1996, Bernhard Rosenkraenzer wrote:
> On Thu, 7 Nov 1996, Michael L. Galbraith wrote: > > > I keep my system libs; libc, X-tree ... compiled with the latest/greatest > > experimental kernel headers for consistency sake. Yesterday, I recompiled > > libc-5.4.10 w. 2.1.7 headers. This broke everything net daemon wise (all). > > === Forwarded message follows === > > This is the patch for libc 5.4.11 which enables you to compile libc > 5.4.11 under linux 2.1.x. It won't be needed for libc 5.4.12 or above. > The pre-compiled libc should run fine under linux 2.1.x. > > H.J. > hjl@gnu.ai.mit.edu > -- > Sun Nov 3 12:00:02 1996 H.J. Lu (hjl@gnu.ai.mit.edu) > > * sysdeps/i386/hton.c: add support for linux 2.1.x. > > Wed Oct 23 13:21:55 1996 Kars de Jong <jongk@cs.utwente.nl> > > * sysdeps/linux/m68k/__brk.c: > * sysdeps/linux/m68k/__sbrk.c: > * sysdeps/pthreads/mit/linux/m68k/machdep.c: bug fixes. > > Index: hton.c > =================================================================== > RCS file: /home/work/cvs/linux/libc/sysdeps/i386/hton.c,v > retrieving revision 1.2 > diff -c -r1.2 hton.c > *** linux/libc/sysdeps/i386/hton.c 1995/12/13 04:19:01 1.2 > --- linux/libc/sysdeps/i386/hton.c 1996/11/03 19:55:06 > *************** > *** 1,5 **** > --- 1,13 ---- > #include <ansidecl.h> > #include <netinet/in.h> > + #ifdef __linux__ > + # include <linux/version.h> > + # ifdef LINUX_VERSION_CODE > + # if LINUX_VERSION_CODE >= 131328 > + # include <asm/byteorder.h> > + # endif > + # endif > + #endif > > #undef ntohl > #undef ntohs > --- linux/libc/sysdeps/linux/m68k/__brk.c~ Sat Oct 5 04:12:01 1996 > +++ linux/libc/sysdeps/linux/m68k/__brk.c Wed Oct 23 13:15:31 1996 > @@ -8,7 +8,7 @@ > > int __brk(void * end_data_seg) > { > - if (__init_brk (void) == 0) > + if (__init_brk () == 0) > { > __asm__ volatile ("movel %2,%/d1\n\t" > "moveq %1,%/d0\n\t" > --- linux/libc/sysdeps/linux/m68k/__sbrk.c~ Sat Oct 5 04:12:01 1996 > +++ linux/libc/sysdeps/linux/m68k/__sbrk.c Wed Oct 23 13:16:22 1996 > @@ -9,7 +9,7 @@ > void * > __sbrk(ptrdiff_t increment) > { > - if (__init_brk (void) == 0) > + if (__init_brk () == 0) > { > register void * tmp asm ("%d1") = ___brk_addr+increment; > __asm__ volatile ("movel %1,%/d0\n\t" > --- linux/libc/sysdeps/pthreads/mit/linux/m68k/machdep.c~ Sat Oct 5 04:12:02 1996 > +++ linux/libc/sysdeps/pthreads/mit/linux/m68k/machdep.c Wed Oct 23 13:30:13 1996 > @@ -342,7 +342,7 @@ > /* ========================================================================== > * machdep_sys_sendmsg() > */ > -int machdep_sys_sendmsg(int a, const struct msghdr * b, int c) > +int machdep_sys_sendmsg(int a, char * b, int c) > { > return(-ENOSYS); > } > @@ -358,7 +358,7 @@ > /* ========================================================================== > * machdep_sys_recvmsg() > */ > -int machdep_sys_recvmsg(int a, struct msghdr * b, int c) > +int machdep_sys_recvmsg(int a, char * b, int c) > { > return(-ENOSYS); > } > > > >
|  |