From dd3189990b1d918b3a9e482ec6e9cc9a8b9e8fe9 Mon Sep 17 00:00:00 2001 From: Dimitar Dimitrov Date: Thu, 9 May 2019 10:26:11 +0100 Subject: [PATCH] Use the correct names for the init and fini array start symbols in the default Pru linker script. * scripttempl/pru.sc (__init_array_begin, __init_array_begin): Rename. --- ld/ChangeLog | 5 +++++ ld/scripttempl/pru.sc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 6bdc516173a..9ca4a4ed51a 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2019-05-09 Dimitar Dimitrov + + * scripttempl/pru.sc (__init_array_begin, __init_array_begin): + Rename. + 2019-05-08 Pekka Seppänen PR 24536 diff --git a/ld/scripttempl/pru.sc b/ld/scripttempl/pru.sc index 933a1f9690b..9ef798082f2 100644 --- a/ld/scripttempl/pru.sc +++ b/ld/scripttempl/pru.sc @@ -119,11 +119,11 @@ SECTIONS /* CRT is prepared for constructor/destructor table to have a "valid" NULL address. */ - ${CONSTRUCTING+ __init_array_begin = . ; } + ${CONSTRUCTING+ __init_array_start = . ; } ${CONSTRUCTING+ KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*)))} ${CONSTRUCTING+ KEEP (*(.init_array))} ${CONSTRUCTING+ __init_array_end = . ; } - ${CONSTRUCTING+ __fini_array_begin = . ; } + ${CONSTRUCTING+ __fini_array_start = . ; } ${CONSTRUCTING+ KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*)))} ${CONSTRUCTING+ KEEP (*(.fini_array))} ${CONSTRUCTING+ __fini_array_end = . ; } -- 2.30.2