Bug #2204
closed-Wl,--warn-common warnings
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
Updated by marino over 12 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.
Updated by tuxillo over 2 years ago
- Description updated (diff)
- Category set to Userland
- Status changed from New to Closed
- Assignee set to marino
- % Done changed from 0 to 100
This was dealt with in:
d66febebfcbe87509f4e19c8e51cc6a3a490996a
a0ba0189b9089fb6630d9e0244b373af683cbe9c