/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <string.h>
#include "machdep.h"
#include "reloc.h"
#include "_librtld.h"
#include "_elf.h"
/*
* Undo relocations that have been applied to a memory image. Basically this
* involves copying the original files relocation offset into the new image
* being created.
*/
/* ARGSUSED3 */
void
{
switch (rtype) {
case R_AMD64_NONE:
break;
case R_AMD64_COPY:
break;
case R_AMD64_JUMP_SLOT:
{
/* LINTED */
/* LINTED */
if (_iaddr)
else
}
break;
default:
{
if (iaddr)
else
}
}
}
/*
* Copy a relocation record and increment its value. The record must reflect
* the new address to which this image is fixed. Note that .got entries
* associated with .plt's must be fixed to the new base address.
*/
/* ARGSUSED3 */
void
{
/* LINTED */
/* LINTED */
if (_iaddr)
else
}
}
/*
* Clear a relocation record. The relocation has been applied to the image and
* thus the relocation must not occur again.
*/
void
{
}
/*
* Apply a relocation to an image being built from an input file. Use the
* runtime linkers routines to do the necessary magic.
*/
void
{
if (type == R_AMD64_JUMP_SLOT) {
vaddr = 0;
else
/* LINTED */
} else if (type == R_AMD64_COPY) {
} else {
}
}