Targetting S12Z

John Darrington john@darrington.wattle.id.au
Thu May 17 10:55:00 GMT 2018


I wasn't compiling with -Werror.   I think all those warnings can be safely ignored
(except perhaps the last one - I will look into it).    In fact, the functions where
the others occur, I belive are all stubs, and can probably be deleted.  I had copied them 
from other targets, but their purpose is unknown (to me).

J'


On Thu, May 17, 2018 at 10:48:12AM +0100, Nick Clifton wrote:
     Hi John,
     
     > I think the S12Z target has reached the stage where it could be considered for
     > committing.
     
     I am having problems compiling these sources.  For example:
      bfd/elf32-s12z.c: In function 'shift_addend_reloc':
     bfd/elf32-s12z.c:37:73: error: unused parameter 'symbol' [-Werror=unused-parameter]
     bfd/elf32-s12z.c:38:11: error: unused parameter 'data' [-Werror=unused-parameter]
     bfd/elf32-s12z.c:38:27: error: unused parameter 'input_section' [-Werror=unused-parameter]
     bfd/elf32-s12z.c:38:47: error: unused parameter 'output' [-Werror=unused-parameter]
     bfd/elf32-s12z.c:38:62: error: unused parameter 'msg' [-Werror=unused-parameter]
     bfd/elf32-s12z.c: In function 's12z_elf_build_one_stub':
     bfd/elf32-s12z.c:262:33: error: unused variable 'phys_addr' [-Werror=unused-variable]
     bfd/elf32-s12z.c:262:22: error: unused variable 'phys_page' [-Werror=unused-variable]
     bfd/elf32-s12z.c:262:11: error: unused variable 'sym_value' [-Werror=unused-variable]
     bfd/elf32-s12z.c:261:13: error: unused variable 'loc' [-Werror=unused-variable]
     bfd/elf32-s12z.c:260:8: error: unused variable 'stub_bfd' [-Werror=unused-variable]
     bfd/elf32-s12z.c:259:13: error: unused variable 'stub_sec' [-Werror=unused-variable]
     bfd/elf32-s12z.c:258:36: error: unused variable 'htab' [-Werror=unused-variable]
     bfd/elf32-s12z.c:257:25: error: variable 'info' set but not used [-Werror=unused-but-set-variable]
     bfd/elf32-s12z.c:256:38: error: variable 'stub_entry' set but not used [-Werror=unused-but-set-variable]
     bfd/elf32-s12z.c: In function 's12z_elf_size_one_stub':
     bfd/elf32-s12z.c:278:48: error: unused parameter 'gen_entry' [-Werror=unused-parameter]
     bfd/elf32-s12z.c: In function 's12z_elf_bfd_link_hash_table_create':
     bfd/elf32-s12z.c:288:43: error: unused parameter 'abfd' [-Werror=unused-parameter]
     bfd/elf32-s12z.c: In function 's12z_elf_set_mach_from_flags':
     bfd/elf32-s12z.c:297:12: error: unused variable 'flags' [-Werror=unused-variable]
     At top level:
     bfd/elf32-s12z.c:288:1: error: 's12z_elf_bfd_link_hash_table_create' defined but not used [-Werror=unused-function]
     bfd/elf32-s12z.c:278:1: error: 's12z_elf_size_one_stub' defined but not used [-Werror=unused-function]
     bfd/elf32-s12z.c:253:1: error: 's12z_elf_build_one_stub' defined but not used [-Werror=unused-function]
     
     And:
     
     opcodes/s12z-dis.c: In function 'decode_possible_symbol':
     opcodes/s12z-dis.c:365:46: error: format '%d' expects argument of type 'int', but argument 3 has type 'bfd_vma {aka long unsigned int}' [-Werror=format=]
     
     Cheers
       Nick
     
       
     




-- 
Avoid eavesdropping.  Send strong encrypted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://sourceware.org/pipermail/binutils/attachments/20180517/48ac3871/attachment.sig>


More information about the Binutils mailing list