10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * CDDL HEADER START
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * The contents of this file are subject to the terms of the
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * Common Development and Distribution License (the "License").
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * You may not use this file except in compliance with the License.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * See the License for the specific language governing permissions
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * and limitations under the License.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * When distributing Covered Code, include this CDDL HEADER in each
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * If applicable, add the following below this CDDL HEADER, with the
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * fields enclosed by brackets "[]" replaced with your own identifying
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * information: Portions Copyright [yyyy] [name of copyright owner]
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * CDDL HEADER END
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * Copyright 1998 Sun Microsystems, Inc. All rights reserved.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * Use is subject to license terms.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe#define SUNPRO_DEPENDENCIES "SUNPRO_DEPENDENCIES"
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * Linked list of strings - used to keep lists of names
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * of directories or files.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe} /* mk_state_init() */
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe} /* prepend_str() */
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * SUNPRO_DEPENDENCIES wasn't set, we don't collect .make.state
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * information.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe} /* mk_state_collect_dep() */
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe char lockfile[MAXPATHLEN], * err, * space, * target;
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe extern char * file_lock(char *, char *, int);
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe if ((space = strchr(depend_file, ' ')) == NULL)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe (void) sprintf(lockfile, "%s.lock", depend_file);
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe if ((err = file_lock(depend_file, lockfile, 0))) {
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe} /* mk_state_update_exit() */
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe/* LINTED static unused */
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe} /* ld_support_init() */
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe/* ARGSUSED */
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Loweld_file(const char * file, const Elf_Kind ekind, int flags, Elf *elf)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe if(! ((flags & LD_SUP_DERIVED) && !(flags & LD_SUP_EXTRACTED)))
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe} /* ld_file */
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe} /* ld_atexit() */
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe * Supporting 64-bit objects
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Loweld_file64(const char * file, const Elf_Kind ekind, int flags, Elf *elf)
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe if(! ((flags & LD_SUP_DERIVED) && !(flags & LD_SUP_EXTRACTED)))
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe} /* ld_file64 */
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe} /* ld_atexit64() */