[LEDE-DEV] [PATCH v2] gdb: bump to 8.0.1

Stijn Tintel stijn at linux-ipv6.be
Wed Sep 27 10:41:00 PDT 2017


On 27-09-17 10:31, Felix Fietkau wrote:
> On 2017-09-26 17:10, Stijn Tintel wrote:
>> On 25-09-17 20:18, Felix Fietkau wrote:
>>> On 2017-09-25 15:36, Stijn Tintel wrote:
>>>> Since version 8.0, gdbserver seems to have a hard dependency on
>>>> libstdc++, even with --disable-libstdcxx.
>>> I think it's worth adding -static-libstdc++ to LDFLAGS. With a bit of
>>> luck, gdbserver does not need much of libstdc++.
>> That seems to work. Sizes on x86/64:
>> gdbserver 151K
>> libstdcpp 335K
>>
>> With TARGET_LDFLAGS+=-static-libstdc++:
>> gdbserver 320K
> Please add -Wl,--gc-sections as well. It seems to bring the package size
> down to 146K on MIPS.
Have this queued in my staging tree. I'll push it when the buildbot is
upgraded: https://git.lede-project.org/9eb0ccfe

Size of gdbserver on x86/64: 171K

Thanks,
Stijn



More information about the Lede-dev mailing list