From c23092887fce8bf97ff33f72adf2d454946e7271 Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Tue, 28 Aug 2012 09:06:07 +0200 Subject: [PATCH] ARM: remove dummy entries from .so init_array/fini_array The runtime linker parses the ELF section headers to discover the size of the init_array and fini_array, so there is no point in putting NULL terminators at the end. Change-Id: I3246cd585efce9314155600277dd829e9f37d04f Signed-off-by: Ard Biesheuvel --- libc/arch-arm/bionic/crtend_so.S | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/libc/arch-arm/bionic/crtend_so.S b/libc/arch-arm/bionic/crtend_so.S index 0cb99478a..bb6570e9b 100644 --- a/libc/arch-arm/bionic/crtend_so.S +++ b/libc/arch-arm/bionic/crtend_so.S @@ -26,16 +26,6 @@ * SUCH DAMAGE. */ -/* This is the same than crtend.S except that a shared library - * cannot have a .preinit_array - */ - - .section .init_array, "aw" - .long 0 - - .section .fini_array, "aw" - .long 0 - #if defined(__linux__) && defined(__ELF__) .section .note.GNU-stack,"",%progbits #endif