[511] | 1 | /* $Id: weakld.h 2692 2006-04-10 22:50:06Z bird $ */
|
---|
| 2 | /** @file
|
---|
[485] | 3 | *
|
---|
| 4 | * Weak Pre-Linker.
|
---|
| 5 | *
|
---|
| 6 | * Copyright (c) 2003 InnoTek Systemberatung GmbH
|
---|
| 7 | * Author: knut st. osmundsen <bird-srcspam@anduin.net>
|
---|
| 8 | *
|
---|
| 9 | *
|
---|
| 10 | * This program is free software; you can redistribute it and/or modify
|
---|
| 11 | * it under the terms of the GNU General Public License as published by
|
---|
| 12 | * the Free Software Foundation; either version 2 of the License, or
|
---|
| 13 | * (at your option) any later version.
|
---|
| 14 | *
|
---|
| 15 | * This program is distributed in the hope that it will be useful,
|
---|
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 18 | * GNU General Public License for more details.
|
---|
| 19 | *
|
---|
| 20 | * You should have received a copy of the GNU General Public License
|
---|
| 21 | * along with This program; if not, write to the Free Software
|
---|
| 22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
| 23 | *
|
---|
| 24 | */
|
---|
| 25 |
|
---|
| 26 | #ifndef __weak_h__
|
---|
| 27 | #define __weak_h__
|
---|
| 28 |
|
---|
| 29 | /*******************************************************************************
|
---|
| 30 | * Structures and Typedefs *
|
---|
| 31 | *******************************************************************************/
|
---|
| 32 | struct wld;
|
---|
[511] | 33 | /** Weak LD Instance Pointer. */
|
---|
[485] | 34 | typedef struct wld * PWLD;
|
---|
[491] | 35 |
|
---|
[485] | 36 | /** wld_create() flags. */
|
---|
| 37 | enum wld_create_flags
|
---|
| 38 | {
|
---|
| 39 | /** Verbose */
|
---|
[491] | 40 | WLDC_VERBOSE = 1,
|
---|
[485] | 41 | /** Skip extended dictionary of libraries. */
|
---|
[491] | 42 | WLDC_NO_EXTENDED_DICTIONARY_SEARCH = 2,
|
---|
| 43 | /** Case in-sensitive symbol resolution. */
|
---|
| 44 | WLDC_CASE_INSENSITIVE = 4,
|
---|
[541] | 45 | /** The linker is link386. */
|
---|
[2692] | 46 | WLDC_LINKER_LINK386 = 0x1000,
|
---|
| 47 | /** The linker is wlink. */
|
---|
| 48 | WLDC_LINKER_WLINK = 0x2000
|
---|
[485] | 49 | };
|
---|
| 50 |
|
---|
| 51 |
|
---|
| 52 | /*******************************************************************************
|
---|
| 53 | * Functions *
|
---|
| 54 | *******************************************************************************/
|
---|
[511] | 55 | /** @group Weak LD - Public methods.
|
---|
| 56 | * @{ */
|
---|
[541] | 57 | PWLD WLDCreate(unsigned fFlags);
|
---|
| 58 | int WLDAddObject(PWLD pWld, FILE *phFile, const char *pszName);
|
---|
| 59 | int WLDAddDefFile(PWLD pWld, FILE *phFile, const char *pszName);
|
---|
| 60 | int WLDAddLibrary(PWLD pWld, FILE *phFile, const char *pszName);
|
---|
| 61 | int WLDPass1(PWLD pWld);
|
---|
| 62 | int WLDGenerateWeakAliases(PWLD pwld, char *pszObjName, char *pszDefName);
|
---|
| 63 | int WLDDestroy(PWLD pWld);
|
---|
[511] | 64 | /** @} */
|
---|
[485] | 65 |
|
---|
[491] | 66 | #endif
|
---|