1
# Copyright (C) 2011 David Manzanares <manxi.david@gmail.com>
2
#This file is part of PyEffect.
4
# PyEffect is free software: you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation, either version 3 of the License, or
7
# (at your option) any later version.
9
# PyEffect is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with PyEffect. If not, see <http://www.gnu.org/licenses/>.
17
#This is the PyEffect Stage 4
20
#Assemble and link the assembly code
22
#Third party libraries
36
if args.gstabs == True:
37
asArgs = asArgs + "--gstabs "
38
gas="as " + asArgs + target[0:(len(target) - 1)] + "s -o " + target[0:(len(target) - 1)] + "o"
39
out.prg("Compiling assembler code with GAS ("+repr(gas)+")...")
42
ld="ld " + target[0:(len(target) - 1)] + "o -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o " + target[0:(len(target) - 2)] + ldargs
43
out.prg("Linking ("+repr(ld)+")...")