OSDN Git Service

[AVR] Explicitly set the address of the data section when invoking the linker
authorDylan McKay <me@dylanmckay.io>
Sun, 17 May 2020 14:18:54 +0000 (02:18 +1200)
committerDylan McKay <me@dylanmckay.io>
Sun, 17 May 2020 14:24:51 +0000 (02:24 +1200)
commitede6005e7092ddae454e4d365d8adefeaec1f5e3
treee667169695e66f0ac7e9e080dcf9d20aa9b14f7e
parent1d6eb09d2225310b1af54856c34fdcd45cd0f9ef
[AVR] Explicitly set the address of the data section when invoking the linker

This is required to get avr-gdb correctly showing values at the right
addresses. This problem was discovered by using debug symbols in an
external program to lookup values in an AVR simulator.
clang/lib/Driver/ToolChains/AVR.cpp