[LLVMdev] [PROPOSAL] ELF safe/unsafe sections
Rafael EspĂndola
rafael.espindola at gmail.com
Wed Jul 31 07:21:15 PDT 2013
>> However, I question several fundamental assumptions:
>> 1) We should be very certain that -ffunction-sections is not a viable
>> solution as it exists and is well supported in other toolchains and
>> environments.
>
> -ffunction-sections and -fdata-sections would work, but that would require
> all third party libraries etc to make sure that they are all compiled with
> -ffunction-sections.
No, just for them to be GCed. In the same way the proposals for having
"safe to move symbols" would need some flags to be present in the .o
files. The flags are really just an optimization.
>
>> 2) We should talk to other ELF producers and coordinate to make sure we
>> don't end up creating a twisty maze of extensions here.
>
> This is not a problem with the general ELF community since the binutils
> ld/gold would not atomize sections.
There is no reason they could not.
Cheers,
Rafael
More information about the llvm-dev
mailing list