/contrib/toolchain/binutils/binutils/Makefile |
---|
19,13 → 19,13 |
SRCS = \ |
arparse.c arlex.c ar.c \ |
not-ranlib.c arsup.c \ |
binemul.c emul_vanilla.c \ |
objcopy.c not-strip.c rename.c \ |
rddbg.c debug.c stabs.c ieee.c \ |
rdcoff.c wrstabs.c bucomm.c \ |
version.c filemode.c |
ar.c arlex.c arparse.c arsup.c \ |
binemul.c bucomm.c debug.c \ |
emul_vanilla.c filemode.c ieee.c\ |
is-strip.c not-ranlib.c \ |
not-strip.c objcopy.c rdcoff.c \ |
rddbg.c rename.c stabs.c \ |
version.c wrstabs.c |
OCOPY = \ |
objcopy.o not-strip.o rename.o \ |
39,9 → 39,15 |
binemul.o emul_vanilla.o \ |
bucomm.o version.o filemode.o |
OSTRIP = \ |
objcopy.o is-strip.o rename.o \ |
rddbg.o debug.o stabs.o ieee.o \ |
rdcoff.o wrstabs.o bucomm.o \ |
version.o filemode.o |
# targets |
all: objcopy ar |
all: objcopy ar strip |
objcopy: $(OCOPY) Makefile |
$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(OCOPY) $(LIBS) |
51,6 → 57,10 |
$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(OAR) $(LIBS) |
kos32-objcopy $@ -O binary |
strip: $(OSTRIP) Makefile |
$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(OSTRIP) $(LIBS) |
kos32-objcopy $@ -O binary |
%.o : %.c Makefile |
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
/contrib/toolchain/binutils/binutils/ar.c |
---|
883,7 → 883,7 |
if (!operation_alters_arch) |
{ |
fprintf (stderr, "%s: ", program_name); |
// perror (archive_filename); |
perror (archive_filename); |
maybequit (); |
return NULL; |
} |
1050,7 → 1050,7 |
ostream = fopen (bfd_get_filename (abfd), FOPEN_WB); |
if (ostream == NULL) |
{ |
// perror (bfd_get_filename (abfd)); |
perror (bfd_get_filename (abfd)); |
xexit (1); |
} |
1078,7 → 1078,7 |
ostream = fopen (bfd_get_filename (abfd), FOPEN_WB); |
if (ostream == NULL) |
{ |
// perror (bfd_get_filename (abfd)); |
perror (bfd_get_filename (abfd)); |
xexit (1); |
} |
/contrib/toolchain/binutils/binutils/is-strip.c |
---|
0,0 → 1,23 |
/* Copyright 2007 Free Software Foundation, Inc. |
This file is part of GNU Binutils. |
This program is free software; you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
the Free Software Foundation; either version 3 of the License, or |
(at your option) any later version. |
This program is distributed in the hope that it will be useful, |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
GNU General Public License for more details. |
You should have received a copy of the GNU General Public License |
along with this program; if not, write to the Free Software |
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
02110-1301, USA. */ |
/* Linked with objcopy.o to flag that this program is 'strip' (not |
'objcopy'). */ |
int is_strip = 1; |