diff options
author | peter <peter@FreeBSD.org> | 1996-10-01 01:22:51 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-10-01 01:22:51 +0000 |
commit | 84a69ec571fc69439f49a2a47d5963f49cf6488e (patch) | |
tree | 971c56261cf0f40cf9505ac3c935e0bbc707a2df /gnu/usr.bin/ld/symbol.c | |
parent | 23b2a82332a3d2e5a644b9b9476f24286d0889a3 (diff) | |
download | FreeBSD-src-84a69ec571fc69439f49a2a47d5963f49cf6488e.zip FreeBSD-src-84a69ec571fc69439f49a2a47d5963f49cf6488e.tar.gz |
Support for .weak (in addition to the N_INDR stab) for gcc/g++. Also deal
with the -R option and store the path in the dynamic header when specified.
The $LD_RUN_PATH environment variable is not checked yet.
While here, split up the code a bit more to enable more selective replacing
of GPL'ed components that are linked with ld.so with others.
Obtained from: NetBSD (mostly, the breakup is my fault)
Diffstat (limited to 'gnu/usr.bin/ld/symbol.c')
-rw-r--r-- | gnu/usr.bin/ld/symbol.c | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/gnu/usr.bin/ld/symbol.c b/gnu/usr.bin/ld/symbol.c index c07637e..1073870 100644 --- a/gnu/usr.bin/ld/symbol.c +++ b/gnu/usr.bin/ld/symbol.c @@ -1,5 +1,37 @@ +/*- + * This code is derived from software copyrighted by the Free Software + * Foundation. + * + * Modified 1991 by Donn Seeley at UUNET Technologies, Inc. + * + * Modified 1993 by Paul Kranenburg, Erasmus University + */ + +/* Derived from ld.c: "@(#)ld.c 6.10 (Berkeley) 5/22/91"; */ + +/* Linker `ld' for GNU + Copyright (C) 1988 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 1, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +/* Written by Richard Stallman with some help from Eric Albert. + Set, indirect, and warning symbol features added by Randy Smith. */ + /* - * $Id: symbol.c,v 1.5 1994/06/15 22:39:56 rich Exp $ - symbol table routines + * symbol table routines + * $Id: symbol.c,v 1.6 1994/12/23 22:30:54 nate Exp $ */ /* Create the symbol table entries for `etext', `edata' and `end'. */ @@ -14,6 +46,7 @@ #include <string.h> #include "ld.h" +#include "dynamic.h" symbol *symtab[SYMTABSIZE]; /* The symbol table. */ int num_hash_tab_syms; /* Number of symbols in symbol hash table. */ |