New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
size missing in mergeable section #5022
Comments
FYI, gcc uses "aG". |
A c++ testcase: class foo {
|
A hack that fixes the bug What is the proper way to do this? Should I remove MergeableConst{4,8,16}? |
Just bumping up severity a bit, since this can also cause linker errors, not just warnings. |
I'm sorry, I missed this bug. Taking a look now, sorry! |
I opted to go for the simple fix: This returns us back to previous behavior. I'd like to get further along with the section selection refactoring stuff before making it more complex. |
[apinotes][cxx-interop] Add support for namespaces, nested tags, and methods.
Extended Description
Compiling
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i386-unknown-linux-gnu"
@foo = weak_odr constant [1 x i8] c"\01"
produces
.section .gnu.linkonce.r.foo,"aM",@progbits
Before revision 77184 it would produce
.section .gnu.linkonce.r.foo,"a",@progbits
This causes the gnu assembler to produce the warning:
Warning: entity size for SHF_MERGE not specified
The text was updated successfully, but these errors were encountered: