Consolidate link map sorting
commitc2c299fd24e87b83c63191ff979d41a86b37d714
authorAndreas Schwab <schwab@suse.de>
Tue, 7 Nov 2017 14:24:19 +0000 (7 15:24 +0100)
committerAndreas Schwab <schwab@suse.de>
Mon, 27 Nov 2017 10:37:19 +0000 (27 11:37 +0100)
tree47b1dcdd9bd9348b5a15f93b376a8e7d275a324b
parentde61465c04d36dadce2f4e7f78ebbe50bae6a21e
Consolidate link map sorting

Combine the four places where link maps are sorted into a single function.
This also moves the logic to skip the first map (representing the main
binary) to the callers.
ChangeLog
elf/Makefile
elf/dl-close.c
elf/dl-deps.c
elf/dl-fini.c
elf/dl-open.c
elf/dl-sort-maps.c [new file with mode: 0644]
sysdeps/generic/ldsodefs.h