Movement of confdefs instance into a static library
Kinsey Moore
kinsey.moore at oarcorp.com
Thu Mar 17 14:02:56 UTC 2022
On 3/17/2022 08:35, Sebastian Huber wrote:
> On 17/03/2022 14:22, Kinsey Moore wrote:
>> On 3/17/2022 00:39, Sebastian Huber wrote:
>>> Hello Kinsey,
>>>
>>> On 16/03/2022 22:57, Kinsey Moore wrote:
>>>> Is moving the confdefs instance into a shared library supported and
>>>> expected to work?
>>>
>>> yes, but the order in which the linker resolves the dependencies is
>>> very important. You have to make sure that the custom configuration
>>> is resolved before the default configuration.
>>>
>>>>
>>>> I was also able to resolve the linker errors by specifying some of
>>>> the link flags multiple times or creating a linker group.
>>>
>>> These are ways to address the ordering. It would help if you can
>>> show the linker command lines and the error messages.
>>>
>> The link command is:
>>
>> arm-rtems6-gcc testsuites/fstests/fserror/test.c.113.o
>> -o/home/kinsey/rtems-development/rtems-ddci/build/arm/deos/testsuites/fstests/imfs_fserror.exe
>> -Wl,-Bstatic -L. -ltestimfs -lrtemstest -lrtemscpu -lrtemsbsp
>> -Wl,-Bdynamic -qrtems -march=armv7-a -mfpu=neon -mfloat-abi=hard
>> -mthumb -gdwarf-2 -fPIC -Wl,--gc-sections
>> -L/home/kinsey/rtems-development/rtems-ddci/bsps/arm/shared/start
>> -L/home/kinsey/rtems-development/rtems-ddci/bsps/arm/deos/start
>> -Wl,-call_shared -Wl,-no-undefined /desk/arm/lib/libkernel.so
>> /desk/arm/lib/libdeos653pal.so -L/desk/arm/appbin -ltime-prl
>> -lface653 -lgcc-so -Wl,--wrap=printf -Wl,--wrap=puts -Wl,--wrap=putchar
>
> I think the problem is that you don't use -qrtems and your start file
> has no dependency on a configuration symbol (for example
> _ISR_Stack_area_begin). You have to make sure that somehow the
> configuration in libtestimfs.a is pulled in.
>
Ok, thanks. -qrtems is still present in that line just after the static
link options, but I'll see if I can add a dependency in the start file.
Kinsey
More information about the devel
mailing list