This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] 'add symbol' feature in objcopy


Hi Ronald,

Thanks a lot for your work, it is a nice feature.

I tried latest cross compile binutils using mingw-w64-i686-gcc, and
found these warnings (-Werror):

objcopy.c: In function âparse_symflagsâ:
objcopy.c:792:7: error: implicit declaration of function âstrndupâ
[-Werror=implicit-function-declaration]
       PARSE_OTHER ("before=", *other);
       ^
objcopy.c:774:9: error: incompatible implicit declaration of built-in
function âstrndupâ [-Werror]
  fval = strndup (s + sizeof fname - 1, len - sizeof fname + 1)
         ^
objcopy.c:792:7: note: in expansion of macro âPARSE_OTHERâ
       PARSE_OTHER ("before=", *other);
       ^
objcopy.c: In function âcopy_mainâ:
objcopy.c:4085:23: error: incompatible implicit declaration of
built-in function âstrndupâ [-Werror]
      newsym->symdef = strndup (optarg, s - optarg);
                       ^
cc1: all warnings being treated as errors
Makefile:939: recipe for target 'objcopy.o' failed
make[4]: *** [objcopy.o] Error 1

Would you mind have a look? Thanks!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]