Skip to content

Incorrect section names and characteristics generated for linkonce sections on Windows. #8774

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

Closed
Bigcheese opened this issue Oct 18, 2010 · 2 comments
Labels
bugzilla Issues migrated from bugzilla llvm:codegen

Comments

@Bigcheese
Copy link
Contributor

Bugzilla Link 8402
Resolution FIXED
Resolved on Feb 27, 2014 19:28
Version trunk
OS Windows NT
Blocks llvm/llvm-bugzilla-archive#13707
CC @asl,@tritao,@rnk

Extended Description

LLVM Assumes that COFF linkonce sections are named .

$linkonce. This is only true on MinGW and Cygwin. Native Windows tools use just .
.

The flags are also incorrect. link.exe warns about it.

@tritao
Copy link
Mannequin

tritao mannequin commented Aug 28, 2012

I just noticed this bug while inspecting for differences between Clang and cl object files.

What should we do about this?

@rnk
Copy link
Collaborator

rnk commented Feb 28, 2014

Rafael fixed this back in r195798. We even use simple section names (.text) for Cygwin and mingw, which should be ABI compatible.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
rniwa pushed a commit to rniwa/llvm-project that referenced this issue May 24, 2024
Also initialize the per-module SwiftASTContext using ProcessModule()
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla llvm:codegen
Projects
None yet
Development

No branches or pull requests

2 participants