Movement of confdefs instance into a static library
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Mar 17 13:35:58 UTC 2022
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.
--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax: +49-89-18 94 741 - 08
Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
More information about the devel
mailing list