diff options
author | Stefan Kempf <stefan@cvs.openbsd.org> | 2017-05-31 03:24:21 +0000 |
---|---|---|
committer | Stefan Kempf <stefan@cvs.openbsd.org> | 2017-05-31 03:24:21 +0000 |
commit | fc9fe7d0b7e7185b1ad47a12d208091fc32123fa (patch) | |
tree | e2e6c8999362d124ebe459ee4a4b3389d5e09bb4 /gnu/llvm/utils/count | |
parent | db48b8a0ea24c8455d7b37a284ce103aa8b690ae (diff) |
Make gcc move switch tables into .rodata instead of .text on i386/amd64
For C++, gcc has to make use of comdat sections instead
of .gnu.linkonce sections for this because
switch tables and functions would now end up
in different .gnu.linkonce sections. This can cause ld
to sometimes incorrectly discard the switch tables, which causes
linker errors. With comdat sections, making the switch table
and function sections belong together is more reliable.
ok deraadt@
Diffstat (limited to 'gnu/llvm/utils/count')
0 files changed, 0 insertions, 0 deletions