How to use arm-none-eabi-objcopy with LTO? Error: plugin needed to handle lto object
I am trying to use objcopy with an archive that has LTO support. But when I use objcopy (to rename a symbol) I have the error:
arm-none-
Here are my sources:
--------- hello.c -----------------
const char* hello(void) {
return "hello";
}
const char* world(void) {
return "world";
}
--------- world.c -----------------
#include <stdio.h>
const char* hello(void);
const char* world(void);
int print_hello(void) {
return printf("%s %s\n", hello(), world());
}
My build steps to generate the LTO archive:
arm-none-eabi-gcc -flto -c hello.c
arm-none-eabi-gcc -flto -c world.c
arm-none-
And to rename the symbol with objcopy:
arm-none-
arm-none-
arm-none-
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: