[PATCH] elf: Rewrite long RESOLVE_MAP macro to a debug friendly function
Nicholas Guriev
nicholas@guriev.su
Tue May 3 10:04:43 GMT 2022
On Пн, 2022-05-02 at 14:20 -0700, Fangrui Song wrote:
> I think this is useful. Does the size of dl-reloc.os code increase or
> decrease with the change?
>
It's an interesting thing but the file has decreased by 7472 bytes with
-Og and by 6896 bytes with -O3 optimization level (debug info enabled).
Despite that readelf(1) sees a new local symbol, _dl_resolve_map.
When debug info is disabled with the -g0 flag, size of the file is also
reduced by 3296 and 1440 bytes respectively.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20220503/cd8d94f2/attachment.sig>
More information about the Libc-alpha
mailing list