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

Felix Fietkau nbd at nbd.name
Wed Sep 27 00:31:41 PDT 2017


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.
>>>
>>> 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.
Please add -Wl,--gc-sections as well. It seems to bring the package size
down to 146K on MIPS.

- Felix



More information about the Lede-dev mailing list