Reorder the linking of objects into a binary.
authorAndrew Bartlett <abartlet@samba.org>
Fri, 30 May 2008 04:58:47 +0000 (14:58 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 30 May 2008 04:58:47 +0000 (14:58 +1000)
The hope here is to get 'main' closer to the front of the binary,
which might help linking of PPC with gcov (we were overflowing the
24bit limit on the TOC)

Andrew Bartlett

source/build/smb_build/makefile.pm

index 73801c25fd3afdd1e294cfe3c52895cd71e1f0cf..0ea31062f78b1bd6fc7ed4928fec2db7341f4e73 100644 (file)
@@ -208,9 +208,9 @@ sub Binary($$)
        $self->_prepare_list($ctx, "LINK_FLAGS");
 
        if (defined($ctx->{USE_HOSTCC}) && $ctx->{USE_HOSTCC} eq "YES") {
-$self->output("\$(call host_binary_link_template, $ctx->{RESULT_BINARY}, \$($ctx->{NAME}_DEPEND_LIST) \$($ctx->{NAME}_FULL_OBJ_LIST), \$($ctx->{NAME}_LINK_FLAGS))\n");
+$self->output("\$(call host_binary_link_template, $ctx->{RESULT_BINARY}, \$($ctx->{NAME}_FULL_OBJ_LIST) \$($ctx->{NAME}_DEPEND_LIST), \$($ctx->{NAME}_LINK_FLAGS))\n");
        } else {
-$self->output("\$(call binary_link_template, $ctx->{RESULT_BINARY}, \$($ctx->{NAME}_DEPEND_LIST) \$($ctx->{NAME}_FULL_OBJ_LIST), \$($ctx->{NAME}_LINK_FLAGS))\n");
+$self->output("\$(call binary_link_template, $ctx->{RESULT_BINARY}, \$($ctx->{NAME}_FULL_OBJ_LIST) \$($ctx->{NAME}_DEPEND_LIST), \$($ctx->{NAME}_LINK_FLAGS))\n");
        }
 }