1N/A * The contents of this file are subject to the terms of the 1N/A * Common Development and Distribution License (the "License"). 1N/A * You may not use this file except in compliance with the License. 1N/A * See the License for the specific language governing permissions 1N/A * and limitations under the License. 1N/A * When distributing Covered Code, include this CDDL HEADER in each 1N/A * If applicable, add the following below this CDDL HEADER, with the 1N/A * fields enclosed by brackets "[]" replaced with your own identifying 1N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1N/A * Copyright 2010 Sun Microsystems, Inc. All rights reserved. 1N/A * Use is subject to license terms. 1N/A * definitions used by SGS. 1N/A * Make machine class dependent functions transparent to the common code 1N/A * Note on ELF_R_TYPE: 64-bit sparc relocations require the use of 1N/A * ELF64_R_TYPE_ID instead of the ELF64_R_TYPE macro used for all 1N/A * other platforms. So our ELF_R_TYPE macro requires the caller to 1N/A * supply the machine type. 1N/A/* Elf64 can hide extra offset in r_info */ 1N/A * Macros for swapping bytes. The type of the argument must 1N/A * match the type given in the macro name. 1N/A ((
_lword) >>
56))
/* Lword is unsigned - 0 bits enter from left */ 1N/A * another that are safe no matter what the data alignment rules of the 1N/A * running platform are. Variants exist to swap the data byteorder 1N/A * at the same time, or not. 1N/A * These macros are useful for code that accesses data that is aligned 1N/A * for a different system architecture, as occurs in cross linking. 1N/A * All of these macros assume the arguments are passed as pointers to 1N/A * bytes (signed or unsigned). 1N/A#
endif /* _MACHELF_H */