diff options
Diffstat (limited to 'dev-embedded/gputils/files/gputils-0.13.4-mapping.patch')
-rw-r--r-- | dev-embedded/gputils/files/gputils-0.13.4-mapping.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-embedded/gputils/files/gputils-0.13.4-mapping.patch b/dev-embedded/gputils/files/gputils-0.13.4-mapping.patch new file mode 100644 index 000000000000..fc940e34c08d --- /dev/null +++ b/dev-embedded/gputils/files/gputils-0.13.4-mapping.patch @@ -0,0 +1,23 @@ +diff -ur gputils-0.13.4.orig/gplink/lst.c gputils-0.13.4/gplink/lst.c +--- gputils-0.13.4.orig/gplink/lst.c 2005-01-03 23:21:20.000000000 +0100 ++++ gputils-0.13.4/gplink/lst.c 2007-03-28 00:07:16.000000000 +0200 +@@ -101,9 +101,9 @@ + if ((line->symbol == symbol) && + (line->line_number == line_number)) { + if (section != line_section) { +- /* switching sections, so update was_org with the new section ++ /* switching sections, so update was_org with the new + address */ +- state.lst.was_org = section->address >> state.byte_addr; ++ state.lst.was_org = line->address >> state.byte_addr; + line_section = section; + } + return line; +@@ -179,6 +179,7 @@ + data & 0xffff, + dasmbuf, + linebuf); ++ state.lst.was_org = org; + cod_lst_line(COD_NORMAL_LST_LINE); + org++; + if (num_words != 1) { |