From a388798850d3da8b1faeca1f76b113b9e5bfeaa4 Mon Sep 17 00:00:00 2001 From: tijl Date: Wed, 11 Feb 2015 17:25:23 +0000 Subject: Fix ldscripts such that ld(1) collects the .fini_array section in the same order as the .init_array section. Finalisation routines need to be called in the opposite order as their corresponding initialisation routines but rtld(1) handles that by calling the function pointers in .fini_array in reverse order. Reviewed by: kib MFC after: 2 weeks --- contrib/binutils/ld/scripttempl/elf.sc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/binutils') diff --git a/contrib/binutils/ld/scripttempl/elf.sc b/contrib/binutils/ld/scripttempl/elf.sc index 205d162..6060c3e 100644 --- a/contrib/binutils/ld/scripttempl/elf.sc +++ b/contrib/binutils/ld/scripttempl/elf.sc @@ -402,8 +402,8 @@ cat <