diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 2011-12-16 22:39:21 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 2011-12-16 22:39:21 +0000 |
| commit | 148819d89b158be812fb30720ebc20c0d93758e3 (patch) | |
| tree | a9b20735c1384241625006c1c8bb45ad81103167 /devel/avr-binutils/files/patch-304-binutils-2.20.1-dwarf2-AVRStudio-workaround | |
| parent | This gem is a C binding to the excellent YAJL JSON parsing and generation (diff) | |
Upgrade to binutils 2.20.1.
Completely reorganize the patches for this port.
Patches for new devices are now synchronized with the Atmel AVR tools.
The main difference is the naming scheme, as FreeBSD patches start
with "patch-", while the Atmel AVR Tools patches end up in ".patch".
Diffstat (limited to 'devel/avr-binutils/files/patch-304-binutils-2.20.1-dwarf2-AVRStudio-workaround')
| -rw-r--r-- | devel/avr-binutils/files/patch-304-binutils-2.20.1-dwarf2-AVRStudio-workaround | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/devel/avr-binutils/files/patch-304-binutils-2.20.1-dwarf2-AVRStudio-workaround b/devel/avr-binutils/files/patch-304-binutils-2.20.1-dwarf2-AVRStudio-workaround new file mode 100644 index 000000000000..a75b26b27919 --- /dev/null +++ b/devel/avr-binutils/files/patch-304-binutils-2.20.1-dwarf2-AVRStudio-workaround @@ -0,0 +1,28 @@ +diff -ruwN gas/dwarf2dbg.c gas/dwarf2dbg.c +--- gas/dwarf2dbg.c 2010-03-11 15:06:25.773290700 +0530 ++++ gas/dwarf2dbg.c 2010-03-11 15:08:20.410311300 +0530 +@@ -112,8 +112,11 @@ + Note: If you want to change this, you'll have to update the + "standard_opcode_lengths" table that is emitted below in + out_debug_line(). */ ++#ifndef TC_AVR + #define DWARF2_LINE_OPCODE_BASE 13 +- ++#else ++#define DWARF2_LINE_OPCODE_BASE 10 ++#endif + #ifndef DWARF2_LINE_BASE + /* Minimum line offset in a special line info. opcode. This value + was chosen to give a reasonable range of values. */ +@@ -1439,9 +1442,11 @@ + out_byte (0); /* DW_LNS_set_basic_block */ + out_byte (0); /* DW_LNS_const_add_pc */ + out_byte (1); /* DW_LNS_fixed_advance_pc */ ++#ifndef TC_AVR + out_byte (0); /* DW_LNS_set_prologue_end */ + out_byte (0); /* DW_LNS_set_epilogue_begin */ + out_byte (1); /* DW_LNS_set_isa */ ++#endif + + out_file_list (); + |
