diff options
| author | Ulrich Drepper <[email protected]> | 2007-02-05 21:05:51 +0000 |
|---|---|---|
| committer | Ulrich Drepper <[email protected]> | 2007-02-05 21:05:51 +0000 |
| commit | 0fe63531c14236e1c0188b7fd1b3ffdc383d95bc (patch) | |
| tree | f8ef1a8530d98f8ab3a6025f052eb29cff500550 /src/arlib.h | |
| parent | aa915fd3d70b4cbe4581f9ec170d986c6ba35063 (diff) | |
Make symtab a global variable in arlib.c.
Diffstat (limited to 'src/arlib.h')
| -rw-r--r-- | src/arlib.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/arlib.h b/src/arlib.h index ab1be0c6..af8e8e42 100644 --- a/src/arlib.h +++ b/src/arlib.h @@ -68,28 +68,28 @@ struct arlib_symtab }; -/* Initialize ARLIB_SYMTAB structure. */ -extern void arlib_init (struct arlib_symtab *symtab); +/* Global variable with symbol table. */ +extern struct arlib_symtab symtab; + +/* Initialize ARLIB_SYMTAB structure. */ +extern void arlib_init (void); /* Finalize ARLIB_SYMTAB content. */ -extern void arlib_finalize (struct arlib_symtab *symtab); +extern void arlib_finalize (void); /* Free resources for ARLIB_SYMTAB. */ -extern void arlib_fini (struct arlib_symtab *symtab); +extern void arlib_fini (void); /* Add symbols from ELF with value OFFSET to the symbol table SYMTAB. */ extern void arlib_add_symbols (Elf *elf, const char *arfname, - const char *membername, - struct arlib_symtab *symtab, off_t off); + const char *membername, off_t off); /* Add name a file offset of a symbol. */ -extern void arlib_add_symref (struct arlib_symtab *symtab, const char *symname, - off_t symoff); +extern void arlib_add_symref (const char *symname, off_t symoff); /* Add long file name FILENAME of length FILENAMELEN to the symbol table SYMTAB. Return the offset into the long file name table. */ -extern long int arlib_add_long_name (struct arlib_symtab *symtab, - const char *filename, size_t filenamelen); +extern long int arlib_add_long_name (const char *filename, size_t filenamelen); #endif /* arlib.h */ |
