/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1994-2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Miscellaneous ISA-specific code.
*/
#include <sys/kobj_impl.h>
#include <sys/archsystm.h>
extern int use_iflush;
/*
* Check that an ELF header corresponds to this machine's
* instruction set architecture. Used by kobj_load_module()
* to not get confused by a misplaced driver or kernel module
* built for a different ISA.
*/
int
{
/*
* XX64 This should eventually be folded into a v9-isa specific file
*/
(h->e_machine == EM_SPARCV9));
}
/*
* return non-zero for a bad-address
*/
int
{
return (0); /* ok */
return (0);
return (1);
}
/*
* Flush instruction cache after updating text
*/
void
{
if (!use_iflush)
return;
addr += 8;
}
}
/*
* Calculate memory image required for relocatable object.
*/
/* ARGSUSED3 */
int
{
/*
* loop through sections to find out how much space we need
* for text, data, (also bss that is already assigned)
*/
continue;
"%s non-zero sect addr in input file\n",
return (-1);
}
}
return (0);
}