From df6b92ed1b325da2b457f17bcaf8afd010916fe4 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 16 Sep 1996 21:56:33 +0000 Subject: [PATCH] * scripttempl/armcoff.sc: For -N or -n, don't align .data. From Chris Hadley --- ld/ChangeLog | 5 +++++ ld/scripttempl/armcoff.sc | 25 ++++++++++++++++++++++--- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 29a057f05cf..96993e2f1ab 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +Mon Sep 16 17:55:21 1996 Ian Lance Taylor + + * scripttempl/armcoff.sc: For -N or -n, don't align .data. From + Chris Hadley + start-sanitize-v850 Sun Sep 15 22:09:56 1996 Jeffrey A Law (law@cygnus.com) diff --git a/ld/scripttempl/armcoff.sc b/ld/scripttempl/armcoff.sc index 8243716449c..daa0e4377e8 100644 --- a/ld/scripttempl/armcoff.sc +++ b/ld/scripttempl/armcoff.sc @@ -1,6 +1,11 @@ # Linker script for ARM COFF. # Based on i386coff.sc by Ian Taylor . test -z "$ENTRY" && ENTRY=_start +if test -z "${DATA_ADDR}"; then + if test "$LD_FLAG" = "N" || test "$LD_FLAG" = "n"; then + DATA_ADDR=. + fi +fi cat <