Skip to content

Commit

Permalink
Allow linking with lld by deduplicating symbols
Browse files Browse the repository at this point in the history
lld appears to be more strict than GNU ld about duplicate exported
symbols: it appears that inherited symbols in the export specification
from a previous version should not be repeated.

This change removes from version 1.2 of the set of exported symbols
those symbols which are already included in the set for version 1.1.
This allows numactl to be compiled with lld without any errors.

Fixes numactl#46
  • Loading branch information
Jesse Haber-Kucharsky authored and andikleen committed Nov 13, 2018
1 parent f567a26 commit 1959c77
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions versions.ldscript
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,14 @@ libnuma_1.2 {
copy_bitmask_to_nodemask;
copy_nodemask_to_bitmask;
copy_bitmask_to_bitmask;
set_mempolicy;
get_mempolicy;
mbind;
move_pages;
migrate_pages;
numa_all_cpus_ptr;
numa_all_nodes_ptr;
numa_alloc;
numa_alloc_interleaved;
numa_alloc_interleaved_subset;
numa_alloc_local;
numa_alloc_onnode;
numa_realloc;
numa_allocate_cpumask;
numa_allocate_nodemask;
numa_available;
numa_bind;
numa_bitmask_alloc;
numa_bitmask_clearall;
Expand All @@ -102,23 +94,14 @@ libnuma_1.2 {
numa_bitmask_setall;
numa_bitmask_setbit;
numa_bitmask_weight;
numa_distance;
numa_error;
numa_exit_on_error;
numa_free;
numa_get_interleave_mask;
numa_get_interleave_node;
numa_get_membind;
numa_get_mems_allowed;
numa_get_run_node_mask;
numa_interleave_memory;
numa_max_node;
numa_max_possible_node;
numa_migrate_pages;
numa_move_pages;
numa_no_nodes_ptr;
numa_node_size64;
numa_node_size;
numa_node_to_cpus;
numa_node_of_cpu;
numa_nodes_ptr;
Expand All @@ -129,26 +112,15 @@ libnuma_1.2 {
numa_num_task_nodes;
numa_num_thread_cpus;
numa_num_thread_nodes;
numa_pagesize;
numa_parse_bitmap;
numa_parse_cpustring;
numa_parse_nodestring;
numa_police_memory;
numa_preferred;
numa_run_on_node;
numa_run_on_node_mask;
numa_sched_getaffinity;
numa_sched_setaffinity;
numa_set_bind_policy;
numa_set_interleave_mask;
numa_set_localalloc;
numa_set_membind;
numa_set_preferred;
numa_set_strict;
numa_setlocal_memory;
numa_tonode_memory;
numa_tonodemask_memory;
numa_warn;
local:
*;
} libnuma_1.1;
Expand Down

0 comments on commit 1959c77

Please sign in to comment.