]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR31124: Addendum: Remove PROVIDE of __flmap_init_label, __flmap.
authorGeorg-Johann Lay <avr@gjlay.de>
Wed, 31 Jan 2024 11:23:20 +0000 (11:23 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 31 Jan 2024 11:23:20 +0000 (11:23 +0000)
Supply these symbols as computed by the linker scripts, even when there are weak definitions.
PR 31124
  * scripttempl/avr.sc (__flmap, __flmap_init_label): Remove PROVIDE.

ld/scripttempl/avr.sc

index 3b18897f33ce458478e626b6875b6078ee0b5713..329d57e284917d8f30f162c5d9b91b77634dd9f6 100644 (file)
@@ -358,8 +358,8 @@ EOF
 if test -z "${HAVE_FLMAP}" && test -n "${RELOCATING}"; then
     cat <<EOF
 
-PROVIDE (__flmap_init_label = DEFINED(__flmap_noinit_start) ? __flmap_noinit_start : 0) ;
-PROVIDE (__flmap = DEFINED(__flmap) ? __flmap : 0) ;
+__flmap_init_label = DEFINED(__flmap_noinit_start) ? __flmap_noinit_start : 0 ;
+__flmap = DEFINED(__flmap) ? __flmap : 0 ;
 
 EOF
 fi
@@ -368,7 +368,7 @@ if test -n "${HAVE_FLMAP}"; then
     cat <<EOF
 
 ${RELOCATING+
-PROVIDE (__flmap_init_label = DEFINED(__flmap_init_start) ? __flmap_init_start : 0) ;
+__flmap_init_label = DEFINED(__flmap_init_start) ? __flmap_init_start : 0 ;
 /* User can specify position of .rodata in flash (LMA) by supplying
    __RODATA_FLASH_START__ or __flmap, where the former takes precedence. */
 __RODATA_FLASH_START__ = DEFINED(__RODATA_FLASH_START__)