From dd0096d7d05a9cb35b163f63c7b060a7bac2d55f Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 30 Oct 2012 14:32:52 +0000 Subject: Add documentation for the binary loader git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5278 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/binfmt/libelf/gnu-elf.ld | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'nuttx/binfmt') diff --git a/nuttx/binfmt/libelf/gnu-elf.ld b/nuttx/binfmt/libelf/gnu-elf.ld index bdf82836b..b2a3dc113 100644 --- a/nuttx/binfmt/libelf/gnu-elf.ld +++ b/nuttx/binfmt/libelf/gnu-elf.ld @@ -1,5 +1,5 @@ /**************************************************************************** - * examples/elf/gnu-elf.ld + * binfmt/libelf/gnu-elf.ld * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -51,8 +51,8 @@ SECTIONS */ *(.gnu.linkonce.t.*) - *(.init) - *(.fini) + *(.init) /* Old ABI */ + *(.fini) /* Old ABI */ _etext = . ; } @@ -86,15 +86,17 @@ SECTIONS .ctors : { - _sctros = . ; - *(.ctors) + _sctors = . ; + *(.ctors) /* Old ABI: Unallocated */ + *(.init_array) /* New ABI: Allocated */ _edtors = . ; } - .ctors : + .dtors : { _sdtors = . ; - *(.dtors) + *(.dtors) /* Old ABI: Unallocated */ + *(.fini_array) /* New ABI: Allocated */ _edtors = . ; } -- cgit v1.2.3