Hi Andrej,

 

Thanks, if the different approach for project compilation has its own ld file then we can remove these 4 lines – going to create a patch for this.

 

BR

 

/Ken

 

From: Andrej Butok <andrey.butok@nxp.com>
Sent: Friday, September 11, 2020 9:10 PM
To: Ken Liu <Ken.Liu@arm.com>
Cc: nd <nd@arm.com>
Subject: RE: The GNUARM linker script change about psa_client objects and the integration method [NXP]

 

Hi Ken,

 

Guess, these lines where upstream from NXP SDK, which is using a different approach for project compilation.

Most probably they may be removed for the original TFM.

 

Best regards,

Andrej

 

From: TF-M <tf-m-bounces@lists.trustedfirmware.org> On Behalf Of Ken Liu via TF-M
Sent: Friday, September 11, 2020 3:04 PM
To: tf-m@lists.trustedfirmware.org
Cc: nd <nd@arm.com>
Subject: [TF-M] The GNUARM linker script change about psa_client objects and the integration method [NXP]

 

Hi,

 

When I was trying to re-arrange the linker script I found below changes:

 

        *psa_client.*(.text*)              /* NXP */

        *psa_client.*(.rodata*)

        *psa_service.*(.text*)             /* NXP */

        *psa_service.*(.rodata*)

        *psa_lifecycle.*(.text*)             /* NXP */

        *psa_lifecycle.*(.rodata*)

        *tfm_log_raw.*(.text*)             /* NXP */

 

I think at least the psa_client.o and psa_service.o are included into the libtfmsprt.a so these items looks duplicated.

 

What is the purpose of this change? Would it fix build problem or runtime problem?

 

Thanks.

 

/Ken