The code needs to be fixed: use the functions or remove them. arm-asm.c: asm_parse_vfp_regvar() arm64-link: gotplt_entry_type() create_plt_entry()
Unified · Split
| @@ -77,6 +77,7 @@ static int asm_parse_vfp_regvar(int t, int double_precision) · 76 unmodified lines | |||
| 77 | return -1; | 77 | return -1; |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | __attribute__((unused)) | ||
| 80 | static int asm_parse_vfp_status_regvar(int t) | 81 | static int asm_parse_vfp_status_regvar(int t) |
| 81 | { | 82 | { |
| 82 | switch (t) { | 83 | switch (t) { |
| @@ -90,6 +90,7 @@ int gotplt_entry_type (int reloc_type) · 89 unmodified lines | |||
| 90 | return -1; | 90 | return -1; |
| 91 | } | 91 | } |
| 92 | 92 | ||
| 93 | __attribute__((unused)) | ||
| 93 | ST_FUNC unsigned create_plt_entry(TCCState *s1, unsigned got_offset, struct sym_attr *attr) | 94 | ST_FUNC unsigned create_plt_entry(TCCState *s1, unsigned got_offset, struct sym_attr *attr) |
| 94 | { | 95 | { |
| 95 | Section *plt = s1->plt; | 96 | Section *plt = s1->plt; |
| @@ -109,6 +110,7 @@ ST_FUNC unsigned create_plt_entry(TCCState *s1, unsigned got_offset, struct sym_ · 13 unmodified lines | |||
| 109 | 110 | ||
| 110 | /* relocate the PLT: compute addresses and offsets in the PLT now that final | 111 | /* relocate the PLT: compute addresses and offsets in the PLT now that final |
| 111 | address for PLT and GOT are known (see fill_program_header) */ | 112 | address for PLT and GOT are known (see fill_program_header) */ |
| 113 | __attribute__((unused)) | ||
| 112 | ST_FUNC void relocate_plt(TCCState *s1) | 114 | ST_FUNC void relocate_plt(TCCState *s1) |
| 113 | { | 115 | { |
| 114 | uint8_t *p, *p_end; | 116 | uint8_t *p, *p_end; |