diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-08-27 16:49:22 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-08-27 16:49:22 +0900 |
| commit | 4d1e921ee57c5d33fc9d124a66497cc08edbaf4d (patch) | |
| tree | 32720d1d8a8aa22311a0292fbb44d856c92bd397 /internal/rosa/package/gcc/binutils-remove-unused.patch | |
| parent | 5caa2080f5b354a09a8d4bbc5ff3659060e9ce47 (diff) | |
internal/rosa/package/gcc: remove unused binutils code
This is blowing up -Wunused-but-set-global in the upcoming toolchain update.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/gcc/binutils-remove-unused.patch')
| -rw-r--r-- | internal/rosa/package/gcc/binutils-remove-unused.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/internal/rosa/package/gcc/binutils-remove-unused.patch b/internal/rosa/package/gcc/binutils-remove-unused.patch new file mode 100644 index 00000000..66b3a262 --- /dev/null +++ b/internal/rosa/package/gcc/binutils-remove-unused.patch @@ -0,0 +1,49 @@ +diff --git a/ld/ldlang.c b/ld/ldlang.c +index b04ba113aaa..b7b988f5139 100644 +--- a/ld/ldlang.c ++++ b/ld/ldlang.c +@@ -70,7 +70,6 @@ static struct obstack pt_obstack; + static const char *entry_symbol_default = "start"; + static bool map_head_is_link_order = false; + static lang_output_section_statement_type *default_common_section; +-static bool map_option_f; + static bfd_vma print_dot; + static lang_input_statement_type *first_file; + static const char *current_target; +@@ -9089,16 +9088,7 @@ lang_add_target (const char *name) + void + lang_add_map (const char *name) + { +- while (*name) +- { +- switch (*name) +- { +- case 'F': +- map_option_f = true; +- break; +- } +- name++; +- } ++ (void)name; + } + + void +diff --git a/ld/mri.c b/ld/mri.c +index 0d137377ce5..e72b34bc31e 100644 +--- a/ld/mri.c ++++ b/ld/mri.c +@@ -45,7 +45,6 @@ struct section_name_struct { + int ok_to_load; + }; + +-static unsigned int symbol_truncate = 10000; + static etree_type *base; /* Relocation base - or null */ + + static struct section_name_struct *order; +@@ -312,5 +311,5 @@ mri_alignmod (const char *name, etree_type *exp) + void + mri_truncate (unsigned int exp) + { +- symbol_truncate = exp; ++ (void)exp; + } |
