Discussed with Ian previously; the objcopy step was left over from
previous attempts at namespacing mini-os and is no longer required as
this is performed when linking minios.o.
Signed-off-by: Martin Lucina <martin@lucina.net>
;;
--stunt-intermediate)
inter1="$1"; shift || noshift
- inter2="$1"; shift || noshift
;;
-plugin|-plugin-opt)
shift || noshift
set -x
ld -nostdlib -r "${outargs[@]}" -o "$inter1"
-objcopy -w -G xenos_* -G _start "$inter1" "$inter2"
-ld ${march:+-m ${march}} -T "$finallds" "$inter2" -o "$outfile"
+ld ${march:+-m ${march}} -T "$finallds" "$inter1" -o "$outfile"
-nostdinc -isystem !BASE!/rump/include -isystem !BASE!/include %(old_cpp_options) !CPPFLAGS! -D__RUMPUSER_XEN__ -D__RUMPAPP__ -D__NetBSD__
*linker:
-!APPTOOLS!/ld --stunt-intermediate %g.link1 %g.link2 --stunt-final-script !LDSCRIPT!
+!APPTOOLS!/ld --stunt-intermediate %g.link1 --stunt-final-script !LDSCRIPT!
*link:
%{m64:-m elf_x86_64;mx32:-m elf32_x86_64;m32:-m elf_i386}
-nostdinc -isystem !BASE!/rump/include -isystem !BASE!/include %(old_cpp_options) !CPPFLAGS! -D__RUMPUSER_XEN__ -D__RUMPAPP__ -D__NetBSD__
*linker:
-!APPTOOLS!/ld --stunt-intermediate %g.link1 %g.link2 --stunt-final-script !LDSCRIPT!
+!APPTOOLS!/ld --stunt-intermediate %g.link1 --stunt-final-script !LDSCRIPT!
*link:
%{m64:-m elf_x86_64;mx32:-m elf32_x86_64;m32:-m elf_i386}