search for: getsectionnam

Displaying 20 results from an estimated 47 matches for "getsectionnam".

Did you mean: getsectionname
2010 Oct 06
0
[LLVMdev] MCLoggingStreamer enhancements
...t; output of the MCLoggingStreamer that may be enabled when outputting an > object file from llc or llvm-mc. It is broken into three pieces. > The first patch allows a MCSection to report a name to be used for > diagnostic purposes. I'm not sure if it may be a better idea to just make getSectionName virtual in the base class instead of adding a new getName function that just forwards to getSectionName in each subclass. Although getName is more consistent with the rest of the MC api. I propose that we make getSectionName virtual in the base class and then rename it to getName as it's more...
2010 Oct 08
2
[LLVMdev] MCLoggingStreamer enhancements
...ngStreamer that may be enabled when outputting an > > object file from llc or llvm-mc. It is broken into three pieces. > > The first patch allows a MCSection to report a name to be used for > > diagnostic purposes. > > I'm not sure if it may be a better idea to just make getSectionName > virtual in the base class instead of adding a new getName function > that just forwards to getSectionName in each subclass. Although > getName is more consistent with the rest of the MC api. > > I propose that we make getSectionName virtual in the base class and > then rename i...
2010 Sep 26
2
[LLVMdev] MCLoggingStreamer enhancements
Hi guys, Attached is a set of patches that adds detailed argument information to the output of the MCLoggingStreamer that may be enabled when outputting an object file from llc or llvm-mc. It is broken into three pieces. The first patch allows a MCSection to report a name to be used for diagnostic purposes. The second patch updates MCLoggingStreamer to enhance its output. This third patch
2010 Oct 08
0
[LLVMdev] MCLoggingStreamer enhancements
...be enabled when outputting an >> > object file from llc or llvm-mc. It is broken into three pieces. >> > The first patch allows a MCSection to report a name to be used for >> > diagnostic purposes. >> >> I'm not sure if it may be a better idea to just make getSectionName >> virtual in the base class instead of adding a new getName function >> that just forwards to getSectionName in each subclass. Although >> getName is more consistent with the rest of the MC api. >> >> I propose that we make getSectionName virtual in the base class an...
2012 Mar 15
3
[LLVMdev] How to set constant pool section?
Hi, Thanks for pointing direction. As far, as I understand by reversing, logic, that I want to overwrite is digged into: lib/MC/MCSectionELF.cpp MCSectionELF::PrintSwitchToSection if (ShouldOmitSectionDirective(SectionName, MAI)) { OS << '\t' << getSectionName() << '\n'; return; } // otherwise print ".section" directive and then section name So I need to overwrite ShouldOmitSectionDirective behavior. But this method of MCSectionELF is not virtual. As a workaround, I stubbed it in core LLVM code (MCSectionELF::ShouldOmitSe...
2013 Apr 19
3
[LLVMdev] funny llvm bug
This is a feature (or bug) of MCSectionELF::PrintSwitchToSection. For ELF target this function tries to escape string if it founds 'suspicious' character, see implementation in MCSectionELF.cpp: StringRef name = getSectionName(); if (name.find_first_not_of("0123456789_." "abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ") == name.npos) { OS << "\t.section\t" << name; } else { OS << &quot...
2012 Mar 15
0
[LLVMdev] How to set constant pool section?
...pointing direction. As far, as I understand by reversing, > logic, that I want to overwrite is digged into: > > lib/MC/MCSectionELF.cpp > > MCSectionELF::PrintSwitchToSection > > if (ShouldOmitSectionDirective(SectionName, MAI)) { > OS << '\t' << getSectionName() << '\n'; > return; > } > > // otherwise print ".section" directive and then section name > > So I need to overwrite ShouldOmitSectionDirective behavior. But this > method of MCSectionELF is not virtual. > As a workaround, I stubbed it in co...
2013 Apr 19
0
[LLVMdev] funny llvm bug
...r 19, 2013 at 04:38:20PM +0700, Serge Pavlov wrote: > This is a feature (or bug) of MCSectionELF::PrintSwitchToSection. For > ELF target this function tries to escape string if it founds > 'suspicious' character, see implementation in MCSectionELF.cpp: > > StringRef name = getSectionName(); > if (name.find_first_not_of("0123456789_." > "abcdefghijklmnopqrstuvwxyz" > "ABCDEFGHIJKLMNOPQRSTUVWXYZ") == name.npos) { > OS << "\t.section\t" << name; > } els...
2018 Jan 19
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...ight idea about putting this in llvm-objcopy. You can look at one of the existing CopyBinary functions there, which currently only work for ELF, but you can just make a new overload that accepts a COFFObjectFile. I would probably start by iterating over each of the sections (getNumberOfSections / getSectionName) looking for .debug$T and .debug$H sections. If you find a .debug$H section then you can just skip that object file. If you find a .debug$T but not a .debug$H, then basically do the same thing that LLD does in PDBLinker::mergeDebugT (create a CVTypeArray, and pass it to GloballyHashedType::hash...
2012 Mar 14
2
[LLVMdev] How to set constant pool section?
Hi, In the document: http://llvm.org/docs/WritingAnLLVMBackend.html described example like: SparcTargetAsmInfo::SparcTargetAsmInfo(const SparcTargetMachine &TM) { Data16bitsDirective = "\t.half\t"; Data32bitsDirective = "\t.word\t"; Data64bitsDirective = 0; // .xword is only supported by V9. ZeroDirective = "\t.skip\t"; CommentString = "!";
2012 Mar 14
0
[LLVMdev] How to set constant pool section?
Hello > I really need in my backend value for this section, distinct from > default. Where can I set it? It was renamed to ReadOnlySection. You might want to check the logic inside CodeGen/TargetLoweringObjectFileImp.cpp (in particular - TargetLoweringObjectFile::SelectionSectionForGlobal) to see how it's used. -- With best regards, Anton Korobeynikov Faculty of Mathematics and
2013 Apr 19
3
[LLVMdev] funny llvm bug
I'm going to file this bug but it's kind of a blocker for me so maybe someone has time to look at it. Should be nearly trivial to fix. It's a bug in the way the "section" attribute of functions is processed. Consider the following code: void x(int i) __attribute((section(".mySection,\"aw\", at progbits#"))); void x(int i) { } If you compile this
2013 Apr 19
0
[LLVMdev] funny llvm bug
On Thu, Apr 18, 2013 at 06:57:29PM -0700, reed kotler wrote: > I'm going to file this bug but it's kind of a blocker for me so > maybe someone has time > to look at it. Should be nearly trivial to fix. I don't think this is a bug, but a misfeature in GCC due to the way it does (non-)escaping. Joerg
2018 Jan 20
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...lvm-objcopy. > > You can look at one of the existing CopyBinary functions there, which > currently only work for ELF, but you can just make a new overload that > accepts a COFFObjectFile. > > I would probably start by iterating over each of the sections > (getNumberOfSections / getSectionName) looking for .debug$T and .debug$H > sections. > > If you find a .debug$H section then you can just skip that object file. > > If you find a .debug$T but not a .debug$H, then basically do the same > thing that LLD does in PDBLinker::mergeDebugT (create a CVTypeArray, and > pa...
2018 Jan 20
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...t; You can look at one of the existing CopyBinary functions there, which >> currently only work for ELF, but you can just make a new overload that >> accepts a COFFObjectFile. >> >> I would probably start by iterating over each of the sections >> (getNumberOfSections / getSectionName) looking for .debug$T and .debug$H >> sections. >> >> If you find a .debug$H section then you can just skip that object file. >> >> If you find a .debug$T but not a .debug$H, then basically do the same >> thing that LLD does in PDBLinker::mergeDebugT (create a...
2018 Jan 20
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...opyBinary functions there, which >>>> currently only work for ELF, but you can just make a new overload that >>>> accepts a COFFObjectFile. >>>> >>>> I would probably start by iterating over each of the sections >>>> (getNumberOfSections / getSectionName) looking for .debug$T and .debug$H >>>> sections. >>>> >>>> If you find a .debug$H section then you can just skip that object >>>> file. >>>> >>>> If you find a .debug$T but not a .debug$H, then basically do the same >>&...
2018 Jan 20
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...ne of the existing CopyBinary functions there, which >>> currently only work for ELF, but you can just make a new overload that >>> accepts a COFFObjectFile. >>> >>> I would probably start by iterating over each of the sections >>> (getNumberOfSections / getSectionName) looking for .debug$T and .debug$H >>> sections. >>> >>> If you find a .debug$H section then you can just skip that object file. >>> >>> If you find a .debug$T but not a .debug$H, then basically do the same >>> thing that LLD does in PDBLinker:...
2018 Jan 20
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...there, which >>>>> currently only work for ELF, but you can just make a new overload that >>>>> accepts a COFFObjectFile. >>>>> >>>>> I would probably start by iterating over each of the sections >>>>> (getNumberOfSections / getSectionName) looking for .debug$T and .debug$H >>>>> sections. >>>>> >>>>> If you find a .debug$H section then you can just skip that object >>>>> file. >>>>> >>>>> If you find a .debug$T but not a .debug$H, then basical...
2018 Jan 20
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...;>>>> currently only work for ELF, but you can just make a new overload that >>>>>> accepts a COFFObjectFile. >>>>>> >>>>>> I would probably start by iterating over each of the sections >>>>>> (getNumberOfSections / getSectionName) looking for .debug$T and .debug$H >>>>>> sections. >>>>>> >>>>>> If you find a .debug$H section then you can just skip that object >>>>>> file. >>>>>> >>>>>> If you find a .debug$T but not...
2018 Jan 19
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
On Fri, Jan 19, 2018 at 9:44 PM, Zachary Turner <zturner at google.com> wrote: > > > On Fri, Jan 19, 2018 at 12:29 PM Leonardo Santagada <santagada at gmail.com> > wrote: > >> Hi, >> >> No I didn't, I used cl.exe from the visual studio toolchain. What I'm >> proposing is a tool for processing .obj files in COFF format, reading them