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

Stijn Tintel stijn at linux-ipv6.be
Tue Sep 26 08:10:20 PDT 2017


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.
>>
>> Fixes CVE-2017-9778.
>>
>> Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
>> ---
>> V2: add hard dependency on libstdc++
>>
>> Also in my staging tree: https://git.lede-project.org/a96fc0d9
> 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

But as gdb 8.0.1 doesn't compile on the buildbot master due to it still
running gcc 4.7, the buildbot will need to be upgraded first.

Stijn



More information about the Lede-dev mailing list