diff --git a/patches/gdb-line-addr-fix.patch b/patches/gdb-line-addr-fix.patch new file mode 100644 index 0000000..0bc4330 --- /dev/null +++ b/patches/gdb-line-addr-fix.patch @@ -0,0 +1,13 @@ +Index: demoscene-toolchain/submodules/binutils-gdb/gdb/dbxread.c +=================================================================== +--- demoscene-toolchain.orig/submodules/binutils-gdb/gdb/dbxread.c ++++ demoscene-toolchain/submodules/binutils-gdb/gdb/dbxread.c +@@ -2581,7 +2581,7 @@ process_one_symbol (int type, int desc, + + /* Relocate for dynamic loading and for ELF acc + function-relative symbols. */ +- valu += function_start_offset; ++ /* valu += function_start_offset; */ + + /* GCC 2.95.3 emits the first N_SLINE stab somewhere in the + middle of the prologue instead of right at the start of the diff --git a/patches/series b/patches/series index e00b318..3710b1d 100644 --- a/patches/series +++ b/patches/series @@ -11,3 +11,4 @@ fs-uae/uaelib-log.diff fs-uae/data-path-macos.diff fs-uae/silence-logs.diff fs-uae/debug-msg-fix.diff +gdb-line-addr-fix.patch