Bug #2204

-Wl,--warn-common warnings

Added by sepherosa over 2 years ago. Updated almost 2 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

I get following warning when linking programs w/ -W,--warn-common

/usr/lib/libc.so: warning: multiple common of `environ'
/usr/lib/crt1.o: warning: previous common is here

v2.13.0.285.g8db21-DEVELOPMENT

World is at the save git version as kernel

Best Regards,
sephe

--
Tomorrow Will Never Die

History

#1 Updated by marino almost 2 years ago

Multiple definitions of environ is intentional:
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c54b5d8d8e1af1fe69da36b12d2ba79580a9ce55

I copied NetBSD's approach to dealing with "local: *;" linker map issue:
https://github.com/jsonn/src/commit/ce0daca9361b087c4759912584fedccfc8cb4d61#lib/libc/stdlib

Christos notes the better solution would be to move __environ and __progname from csu to libc.

Also available in: Atom PDF