This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch] avr port: At90usb82 and "pmem-wrap-around"
- From: Denis Chertykov <denisc at overta dot ru>
- To: binutils at sources dot redhat dot com
- Cc: Denis Chertykov <denisc at overta dot ru>, Anatoly Sokolov <aesok at post dot ru>
- Date: Sat, 05 May 2007 11:05:04 +0400
- Subject: [patch] avr port: At90usb82 and "pmem-wrap-around"
avr-ld option "pmem-wrap-around=<val>" can be only 16k, 32k Ð 64k.
This patch add '8k' necessary for AT90USB82.
2007-05-05 Anatoly Sokolov <aesok@post.ru>
* multempl/avrelf.em (PARSE_AND_LIST_ARGS_CASES): Add new value for
"--pmem-wrap-around".
(PARSE_AND_LIST_OPTIONS): Describe new value for "--pmem-wrap-around".
Index: ld/emultempl/avrelf.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/avrelf.em,v
retrieving revision 1.1
diff -u -r1.1 avrelf.em
--- ld/emultempl/avrelf.em 24 May 2006 07:36:11 -0000 1.1
+++ ld/emultempl/avrelf.em 1 May 2007 13:05:54 -0000
@@ -202,7 +202,7 @@
" "
"program counter wrap-around occures at address\n"
" "
- "<val>. Supported values are 16k, 32k and 64k.\n"));
+ "<val>. Supported values are 8k, 16k, 32k and 64k.\n"));
fprintf (file, _(" --no-call-ret-replacement "
"The relaxation machine normally will\n"
" "
@@ -230,6 +230,8 @@
/* This variable is defined in the bfd library. */
if ((!strcmp (optarg,"32k")) || (!strcmp (optarg,"32K")))
avr_pc_wrap_around = 32768;
+ else if ((!strcmp (optarg,"8k")) || (!strcmp (optarg,"8K")))
+ avr_pc_wrap_around = 8192;
else if ((!strcmp (optarg,"16k")) || (!strcmp (optarg,"16K")))
avr_pc_wrap_around = 16384;
else if ((!strcmp (optarg,"64k")) || (!strcmp (optarg,"64K")))