/[hurd]/hurd/libshouldbeinlibc/wire.c
ViewVC logotype

Diff of /hurd/libshouldbeinlibc/wire.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by roland, Mon Feb 26 04:15:19 2001 UTC revision 1.11 by roland, Wed May 8 09:24:20 2002 UTC
# Line 1  Line 1 
1  /* Function to wire down text and data (including from shared libraries)  /* Function to wire down text and data (including from shared libraries)
2     Copyright (C) 1996,99,2000,01 Free Software Foundation, Inc.     Copyright (C) 1996,99,2000,01,02 Free Software Foundation, Inc.
3     Written by Michael I. Bushnell, p/BSG.     Written by Michael I. Bushnell, p/BSG.
4    
5     This file is part of the GNU Hurd.     This file is part of the GNU Hurd.
# Line 38  Line 38 
38  static struct link_map *  static struct link_map *
39  loaded (void)  loaded (void)
40  {  {
41    Elf32_Dyn *d;    ElfW(Dyn) *d;
42    
43    if (&_DYNAMIC == 0)           /* statically linked */    if (&_DYNAMIC == 0)           /* statically linked */
44      return 0;      return 0;
# Line 54  loaded (void) Line 54  loaded (void)
54  }  }
55    
56  /* Compute the extent of a particular shared object. */  /* Compute the extent of a particular shared object. */
57  static Elf32_Addr  static ElfW(Addr)
58  map_extent (struct link_map *map)  map_extent (struct link_map *map)
59  {  {
60    /* In fact, LIB == MAP, but doing it this way makes it entirely kosher.  */    /* In fact, LIB == MAP, but doing it this way makes it entirely kosher.  */
# Line 73  map_extent (struct link_map *map) Line 73  map_extent (struct link_map *map)
73          error (2, 0, "cannot wire library %s with no _end symbol: %s",          error (2, 0, "cannot wire library %s with no _end symbol: %s",
74                 map->l_name, dlerror ());                 map->l_name, dlerror ());
75        dlclose (lib);        dlclose (lib);
76        return (Elf32_Addr) end - map->l_addr;        return (ElfW(Addr)) end - map->l_addr;
77      }      }
78  }  }
79    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26