https://sourceware.org/bugzilla/show_bug.cgi?id=31292
Bug ID: 31292 Summary: objcopy: add --prefix-symbols-remove Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- objcopy supports --prefix-symbols to prefix all symbols. Perhaps --prefix-symbols-remove= can be added to remove the prefix. For example, cat > a.s <<e .globl a, b a: b: c: d: e cc -c a.s objcopy --prefix-symbols=z a.o b.o objcopy --prefix-symbols-remove=z b.o aa.o % readelf -Ws b.o Symbol table '.symtab' contains 5 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000000 0 NOTYPE LOCAL DEFAULT 1 zc 2: 0000000000000000 0 NOTYPE LOCAL DEFAULT 1 zd 3: 0000000000000000 0 NOTYPE GLOBAL DEFAULT 1 za 4: 0000000000000000 0 NOTYPE GLOBAL DEFAULT 1 zb aa.o should be similar to a.o I see this option proposal from https://github.com/llvm/llvm-project/pull/79415 -- You are receiving this mail because: You are on the CC list for the bug.