git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git v2.46.0 and --allow-multiple-definition linker flag
@ 2024-12-21 23:23 James Mills
  2024-12-22  2:30 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: James Mills @ 2024-12-21 23:23 UTC (permalink / raw)
  To: git

Hi Folks 👋

Been a while since I've emailed one of the large(r) open source lists,
so please excuse me I may be a bit rusty.

For some years now I've been building a very tiny custom LInux
distribution called µLInux (micro Linux) over at
https://git.mills.io/prologic/ulinux -- I primarily target the x86_64
architecture and its intended use is mostly as lightweight VM(s) that
boot really quickly but are otherwise populated with "just enough"
UNIX tools, a small package manager and few other bits to get
interesting things going.

Today I noticed that when upgrading the zlib (✅) and git (❌) ports
that the latest version of Git v2.47.2 does not link and I observe the
following linker error, mostly what looks like a missing
capability/flag of the TinyC compiler that is used as the linker
(LD=tcc):

tcc: error: unsupported linker option '--allow-multiple-definition'

I bisected the Git releases and traced the introduction of this new
flag to v2.46.0

I can't find any details of this flag really or when this was
introduced in the GNU binutils and so far I haven't asked if the Tiny
C devs intend to support this option (yet).

Just wondering, can we consider backing this out? From my very brief
research on the web this seems to allow the linker to permit multiple
definitions of a function. I'm not even sure why that would be
desirable to be honest (but I haven't been a C/C++ developer basically
ever, I know enough to be dangerous!)

Kind regards

James

-- James Mills / prologic

Join Yarn.social today! The only decentralised social media that
respects your privacy and freedoms!

E:    prologic@shortcircuit.net.au
W:    prologic.shortcircuit.net.au
Blog: Read my Blog
Yarn: @prologic@twtxt.net

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

end of thread, other threads:[~2025-01-14 11:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-21 23:23 Git v2.46.0 and --allow-multiple-definition linker flag James Mills
2024-12-22  2:30 ` Junio C Hamano
2024-12-22  2:47   ` Junio C Hamano
2025-01-13 17:54     ` Josh Steadmon
2025-01-14 11:03       ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).