aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-close.c2
-rw-r--r--elf/dl-load.c6
-rw-r--r--elf/dl-open.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c
index 7740787..a301479 100644
--- a/elf/dl-close.c
+++ b/elf/dl-close.c
@@ -145,7 +145,7 @@ _dl_close (void *_map)
imap->l_map_end - imap->l_map_start);
/* Finally, unlink the data structure and free it. */
-#ifdef PIC
+#ifdef SHARED
/* We will unlink the first object only if this is a statically
linked program. */
assert (imap->l_prev != NULL);
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 3892289..5d1463b 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -516,7 +516,7 @@ _dl_init_paths (const char *llp)
const char *strp;
struct r_search_path_elem *pelem, **aelem;
size_t round_size;
-#ifdef PIC
+#ifdef SHARED
struct link_map *l;
#endif
@@ -579,7 +579,7 @@ _dl_init_paths (const char *llp)
max_dirnamelen = SYSTEM_DIRS_MAX_LEN;
*aelem = NULL;
-#ifdef PIC
+#ifdef SHARED
/* This points to the map of the main object. */
l = _dl_loaded;
if (l != NULL)
@@ -613,7 +613,7 @@ _dl_init_paths (const char *llp)
l->l_rpath_dirs = NULL;
}
}
-#endif /* PIC */
+#endif /* SHARED */
if (llp != NULL && *llp != '\0')
{
diff --git a/elf/dl-open.c b/elf/dl-open.c
index b419219..f110a51 100644
--- a/elf/dl-open.c
+++ b/elf/dl-open.c
@@ -166,7 +166,7 @@ dl_open_worker (void *a)
{
if (! l->l_relocated)
{
-#ifdef PIC
+#ifdef SHARED
if (_dl_profile != NULL)
{
/* If this here is the shared object which we want to profile