Project

General

Profile

Actions

Bug #2204

closed

-Wl,--warn-common warnings

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
Userland
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

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

Actions #1

Updated by marino almost 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.

Actions #2

Updated by tuxillo almost 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
Actions

Also available in: Atom PDF