mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] gcclibs: .so is a linker script, not a library.
@ 2021-10-14  6:49 Christian Melki
  2021-10-15 14:16 ` Michael Olbrich
  2021-10-20  9:39 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 2 replies; 3+ messages in thread
From: Christian Melki @ 2021-10-14  6:49 UTC (permalink / raw)
  To: ptxdist

.so is afaik a linker script which groups the .a and the .so.
On target (runtime), nothing more than the actual library is needed.
The copying of the linker script was creating a softlink which
was pointing to itself.

Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
 rules/gcclibs.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/gcclibs.make b/rules/gcclibs.make
index c6c93b4b8..9b95b15d8 100644
--- a/rules/gcclibs.make
+++ b/rules/gcclibs.make
@@ -34,7 +34,7 @@ $(STATEDIR)/gcclibs.targetinstall:
 	@$(call install_fixup, gcclibs,DESCRIPTION,missing)
 
 ifdef PTXCONF_GCCLIBS_GCC_S
-	@$(call install_copy_toolchain_lib, gcclibs, libgcc_s.so)
+	@$(call install_copy_toolchain_lib, gcclibs, libgcc_s.so.1)
 endif
 
 ifdef PTXCONF_GCCLIBS_CXX
-- 
2.30.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] [PATCH] gcclibs: .so is a linker script, not a library.
  2021-10-14  6:49 [ptxdist] [PATCH] gcclibs: .so is a linker script, not a library Christian Melki
@ 2021-10-15 14:16 ` Michael Olbrich
  2021-10-20  9:39 ` [ptxdist] [APPLIED] " Michael Olbrich
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Olbrich @ 2021-10-15 14:16 UTC (permalink / raw)
  To: Christian Melki; +Cc: ptxdist

On Thu, Oct 14, 2021 at 08:49:36AM +0200, Christian Melki wrote:
> .so is afaik a linker script which groups the .a and the .so.

It's a linker script, at least on some architectures.

> On target (runtime), nothing more than the actual library is needed.

True, the .so file is only needed at build-time.

> The copying of the linker script was creating a softlink which
> was pointing to itself.

It's not happening here, so this may depend on the toolchain, but this does
not hurt, so I'll apply it.

Michael

> Signed-off-by: Christian Melki <christian.melki@t2data.com>
> ---
>  rules/gcclibs.make | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/rules/gcclibs.make b/rules/gcclibs.make
> index c6c93b4b8..9b95b15d8 100644
> --- a/rules/gcclibs.make
> +++ b/rules/gcclibs.make
> @@ -34,7 +34,7 @@ $(STATEDIR)/gcclibs.targetinstall:
>  	@$(call install_fixup, gcclibs,DESCRIPTION,missing)
>  
>  ifdef PTXCONF_GCCLIBS_GCC_S
> -	@$(call install_copy_toolchain_lib, gcclibs, libgcc_s.so)
> +	@$(call install_copy_toolchain_lib, gcclibs, libgcc_s.so.1)
>  endif
>  
>  ifdef PTXCONF_GCCLIBS_CXX
> -- 
> 2.30.2
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] [APPLIED] gcclibs: .so is a linker script, not a library.
  2021-10-14  6:49 [ptxdist] [PATCH] gcclibs: .so is a linker script, not a library Christian Melki
  2021-10-15 14:16 ` Michael Olbrich
@ 2021-10-20  9:39 ` Michael Olbrich
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Olbrich @ 2021-10-20  9:39 UTC (permalink / raw)
  To: ptxdist; +Cc: Christian Melki

Thanks, applied as d8c7b6738c0de92b285111428a1905c34c6c62d7.

Michael

[sent from post-receive hook]

On Wed, 20 Oct 2021 11:39:55 +0200, Christian Melki <christian.melki@t2data.com> wrote:
> .so is afaik a linker script which groups the .a and the .so.
> On target (runtime), nothing more than the actual library is needed.
> The copying of the linker script was creating a softlink which
> was pointing to itself.
> 
> Signed-off-by: Christian Melki <christian.melki@t2data.com>
> Message-Id: <20211014064936.3991587-1-christian.melki@t2data.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/gcclibs.make b/rules/gcclibs.make
> index c6c93b4b8ee6..9b95b15d8011 100644
> --- a/rules/gcclibs.make
> +++ b/rules/gcclibs.make
> @@ -34,7 +34,7 @@ $(STATEDIR)/gcclibs.targetinstall:
>  	@$(call install_fixup, gcclibs,DESCRIPTION,missing)
>  
>  ifdef PTXCONF_GCCLIBS_GCC_S
> -	@$(call install_copy_toolchain_lib, gcclibs, libgcc_s.so)
> +	@$(call install_copy_toolchain_lib, gcclibs, libgcc_s.so.1)
>  endif
>  
>  ifdef PTXCONF_GCCLIBS_CXX

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-20  9:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-14  6:49 [ptxdist] [PATCH] gcclibs: .so is a linker script, not a library Christian Melki
2021-10-15 14:16 ` Michael Olbrich
2021-10-20  9:39 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox