Hi Andrew, [Sorry for taking such a long time to reply to your email]
I am trying to localize some symbols in objects inside an archive. Ultimately, it seems like the tools are failing because the .a appears to contain an object with the name "bin/thumbv7em-none-eabihf.o".
If you extract the object files, localize them one by one and then put them back, does the problem go away ? (In theory this should not make any difference at all, but you never know...)
When I try to extract everything in the archive: arm-none-eabi-ar x librustlib.a it extracts all objects up to that problem object with the '/' in the name, but none after it. Is this a bug?
Yes. :-) Either the extraction should complete with all of the files being retrieved or else an error message should be displayed and the exit status set to failure. Please could you file a bug report for this problem here: https://sourceware.org/bugzilla/enter_bug.cgi?product=binutils If you could include a copy of the archive, or simple instructions on how to create a similar one, that would help a lot. Cheers Nick