This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] libcc1: dynamic load versioned library
- From: Hector Oron <hector dot oron at gmail dot com>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 24 Mar 2015 18:06:13 +0100
- Subject: Re: [patch] libcc1: dynamic load versioned library
- Authentication-results: sourceware.org; auth=none
- References: <CAODfWeEEr6ENbqrw4_CsCJ20qh-MTMBRvMcb700tomOCZjnEdw at mail dot gmail dot com> <201503241633 dot t2OGX6aO002810 at glazunov dot sibelius dot xs4all dot nl>
Hello,
2015-03-24 17:33 GMT+01:00 Mark Kettenis <mark.kettenis@xs4all.nl>:
>> From: Hector Oron <hector.oron@gmail.com>
>>
>> Hello,
>>
>> I believe libcc1 is versioned library therefore, it should dlopen on
>> libcc1.so.0 instead libcc1.so.
>> The patch should be applied to master and 7.9 branch.
>
> And what happens if the major version of the library is bumped?
Does that mean that there is some ABI break which might imply or not
newer changes on GDB side?
>> HÃctor OrÃn MartÃnez
>>
>> * include/gcc-c-interface.h (gcc_c_context): load libcc1 versioned library
>>
>> --- gdb-7.9.orig/include/gcc-c-interface.h
>> +++ gdb-7.9/include/gcc-c-interface.h
>> @@ -197,7 +197,7 @@ struct gcc_c_context
>> /* The name of the .so that the compiler builds. We dlopen this
>> later. */
>>
>> -#define GCC_C_FE_LIBCC libcc1.so
>> +#define GCC_C_FE_LIBCC libcc1.so.0
>>
>> /* The compiler exports a single initialization function. This macro
>> holds its name as a symbol. */
>>
>> Regards,
>> --
>> HÃctor OrÃn -.. . -... .. .- -. -.. . ...- . .-.. --- .--. . .-.
>>
>>
--
HÃctor OrÃn -.. . -... .. .- -. -.. . ...- . .-.. --- .--. . .-.