comparison dynodump/dynodump.c @ 272:c5d627a313b1 r21-0b34

Import from CVS: tag r21-0b34
author cvs
date Mon, 13 Aug 2007 10:28:48 +0200
parents 3d6bfa290dbd
children a4f53d9b3154
comparison
equal deleted inserted replaced
271:c7b7086b0a39 272:c5d627a313b1
16 * ALL WARRANTIES WITH REGARD TO SUCH SOURCE CODE, INCLUDING ALL IMPLIED 16 * ALL WARRANTIES WITH REGARD TO SUCH SOURCE CODE, INCLUDING ALL IMPLIED
17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN 17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN
18 * NO EVENT SHALL SUN MICROSYSTEMS, INC. BE LIABLE FOR ANY SPECIAL, INDIRECT, 18 * NO EVENT SHALL SUN MICROSYSTEMS, INC. BE LIABLE FOR ANY SPECIAL, INDIRECT,
19 * INCIDENTAL, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING 19 * INCIDENTAL, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
20 * FROM USE OF SUCH SOURCE CODE, REGARDLESS OF THE THEORY OF LIABILITY. 20 * FROM USE OF SUCH SOURCE CODE, REGARDLESS OF THE THEORY OF LIABILITY.
21 * 21 *
22 * This source code is provided with no support and without any obligation on 22 * This source code is provided with no support and without any obligation on
23 * the part of Sun Microsystems, Inc. to assist in its use, correction, 23 * the part of Sun Microsystems, Inc. to assist in its use, correction,
24 * modification or enhancement. 24 * modification or enhancement.
25 * 25 *
26 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 26 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
27 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS 27 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS
28 * SOURCE CODE OR ANY PART THEREOF. 28 * SOURCE CODE OR ANY PART THEREOF.
71 * modification that occured during the applications execution. 71 * modification that occured during the applications execution.
72 * 72 *
73 * N.B. The above commentary is not quite correct in the flags have been hardwired 73 * N.B. The above commentary is not quite correct in the flags have been hardwired
74 * to RTLD_SAVREL. 74 * to RTLD_SAVREL.
75 */ 75 */
76 #pragma ident "@(#) $Id: dynodump.c,v 1.5 1997/09/03 03:39:06 steve Exp $ - SMI" 76 #pragma ident "@(#) $Id: dynodump.c,v 1.6 1998/03/31 20:10:55 steve Exp $ - SMI"
77 77
78 #define __EXTENSIONS__ 1 78 #define __EXTENSIONS__ 1
79 79
80 #include <sys/param.h> 80 #include <sys/param.h>
81 #include <sys/procfs.h> 81 #include <sys/procfs.h>
490 elf_getdata(_ocache->c_scn, NULL)) == NULL) 490 elf_getdata(_ocache->c_scn, NULL)) == NULL)
491 return (elferr("elf_getdata")); 491 return (elferr("elf_getdata"));
492 492
493 /* 493 /*
494 * If were inserting the new .heap section, insert the new 494 * If were inserting the new .heap section, insert the new
495 * section name and initialize it's virtual address. 495 * section name and initialize its virtual address.
496 */ 496 */
497 if (_addr) { 497 if (_addr) {
498 strs = heap; 498 strs = heap;
499 shdr->sh_addr = S_ROUND(_addr, shdr->sh_addralign); 499 shdr->sh_addr = S_ROUND(_addr, shdr->sh_addralign);
500 _addr = 0; 500 _addr = 0;