kern_linker.c (71999) | kern_linker.c (72012) |
---|---|
1/*- 2 * Copyright (c) 1997-2000 Doug Rabson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1997-2000 Doug Rabson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/kern/kern_linker.c 71999 2001-02-04 13:13:25Z phk $ | 26 * $FreeBSD: head/sys/kern/kern_linker.c 72012 2001-02-04 16:08:18Z phk $ |
27 */ 28 29#include "opt_ddb.h" 30 31#include <sys/param.h> 32#include <sys/kernel.h> 33#include <sys/systm.h> 34#include <sys/malloc.h> --- 534 unchanged lines hidden (view full) --- 569 if (common_size > 0) { 570 /* 571 * This is a common symbol which was not found in the 572 * dependancies. We maintain a simple common symbol table in 573 * the file object. 574 */ 575 struct common_symbol* cp; 576 | 27 */ 28 29#include "opt_ddb.h" 30 31#include <sys/param.h> 32#include <sys/kernel.h> 33#include <sys/systm.h> 34#include <sys/malloc.h> --- 534 unchanged lines hidden (view full) --- 569 if (common_size > 0) { 570 /* 571 * This is a common symbol which was not found in the 572 * dependancies. We maintain a simple common symbol table in 573 * the file object. 574 */ 575 struct common_symbol* cp; 576 |
577 for (cp = STAILQ_FIRST(&file->common); cp; 578 cp = STAILQ_NEXT(cp, link)) | 577 STAILQ_FOREACH(cp, &file->common, link) |
579 if (!strcmp(cp->name, name)) { 580 KLD_DPF(SYM, ("linker_file_lookup_symbol: old common value=%x\n", cp->address)); 581 return cp->address; 582 } 583 584 /* 585 * Round the symbol size up to align. 586 */ --- 810 unchanged lines hidden --- | 578 if (!strcmp(cp->name, name)) { 579 KLD_DPF(SYM, ("linker_file_lookup_symbol: old common value=%x\n", cp->address)); 580 return cp->address; 581 } 582 583 /* 584 * Round the symbol size up to align. 585 */ --- 810 unchanged lines hidden --- |