aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2024-01-31 11:24:22 +0000
committerNick Clifton <nickc@redhat.com>2024-01-31 11:24:22 +0000
commit2fad36c3f553d103fcd0b75abd7a17da89b99864 (patch)
tree324acfb37840a700b51d4cb631d36458236102a3
parent871087ea4ad6f925729c62df5e5b50111be24da6 (diff)
downloadfsf-binutils-gdb-2fad36c3f553d103fcd0b75abd7a17da89b99864.zip
fsf-binutils-gdb-2fad36c3f553d103fcd0b75abd7a17da89b99864.tar.gz
fsf-binutils-gdb-2fad36c3f553d103fcd0b75abd7a17da89b99864.tar.bz2
PR31124: Addendum: Remove PROVIDE of __flmap_init_label, __flmap.
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.
-rw-r--r--ld/scripttempl/avr.sc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/scripttempl/avr.sc b/ld/scripttempl/avr.sc
index 3b18897..329d57e 100644
--- a/ld/scripttempl/avr.sc
+++ b/ld/scripttempl/avr.sc
@@ -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__)