mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
From John Reiser <jreiser@BitWagon.com>
* ldlang.c (lang_common): Conditionally inhibit Common allocation. * lexsup.c: Add --no-define-common commandline option. * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command. * ldlex.l: Likewise. * ld.h: Add command_line.inhibit_common_definition. * ldmain.c (main): Initialize. * ld.texinfo: Document.
This commit is contained in:
@@ -3550,6 +3550,8 @@ lang_check ()
|
||||
static void
|
||||
lang_common ()
|
||||
{
|
||||
if (command_line.inhibit_common_definition)
|
||||
return;
|
||||
if (link_info.relocateable
|
||||
&& ! command_line.force_common_definition)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user