search for: writecoff

Displaying 20 results from an estimated 34 matches for "writecoff".

2018 Jan 20
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...es it will just give you a headache. There are multiple abstractions involved to account for different object file formats (ELF, COFF, MachO) and output formats (Assembly, binary file). At least with yaml2coff It's true that yaml2coff is using the COFFParser structure, but if you look at the writeCOFF function in yaml2coff it's pretty bare-metal. The logic you need will be almost identical, except that instead of checking the COFFParser for the various fields, you'll check the existing COFFObjectFile, which should have similar fields. The only thing you need to different is when writin...
2018 Jan 20
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...ts (Assembly, binary file). At least with >> yaml2coff >> > > I think your phrase got cut there, but yeah I just found AsmPrinter.cpp > and it is convoluted. > > > >> It's true that yaml2coff is using the COFFParser structure, but if you >> look at the writeCOFF function in yaml2coff it's pretty bare-metal. The >> logic you need will be almost identical, except that instead of checking >> the COFFParser for the various fields, you'll check the existing >> COFFObjectFile, which should have similar fields. >> >> The onl...
2018 Jan 19
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...'re writing the list of sections, just add in the .debug$H section right after the .debug$T section. Currently llvm-objcopy only writes ELF files, so it would need to be taught to write COFF files. We have code to do this in the yaml2obj utility (specifically, in yaml2coff.cpp in the function writeCOFF). There may be a way to move this code to somewhere else (llvm/Object/COFF.h?) so that it can be re-used by both yaml2coff and llvm-objcopy, but in the worst case scenario you could copy the code and re-write it to work with these new structures. Lastly, you'll probably want to put all of thi...
2018 Jan 20
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...s (ELF, > COFF, MachO) and output formats (Assembly, binary file). At least with > yaml2coff > I think your phrase got cut there, but yeah I just found AsmPrinter.cpp and it is convoluted. > It's true that yaml2coff is using the COFFParser structure, but if you > look at the writeCOFF function in yaml2coff it's pretty bare-metal. The > logic you need will be almost identical, except that instead of checking > the COFFParser for the various fields, you'll check the existing > COFFObjectFile, which should have similar fields. > > The only thing you need to...
2018 Jan 20
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...of sections, just add in the > .debug$H section right after the .debug$T section. > > Currently llvm-objcopy only writes ELF files, so it would need to be > taught to write COFF files. We have code to do this in the yaml2obj > utility (specifically, in yaml2coff.cpp in the function writeCOFF). There > may be a way to move this code to somewhere else (llvm/Object/COFF.h?) so > that it can be re-used by both yaml2coff and llvm-objcopy, but in the worst > case scenario you could copy the code and re-write it to work with these > new structures. > > Lastly, you'll pr...
2018 Jan 20
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...th >>> yaml2coff >>> >> >> I think your phrase got cut there, but yeah I just found AsmPrinter.cpp >> and it is convoluted. >> >> >> >>> It's true that yaml2coff is using the COFFParser structure, but if you >>> look at the writeCOFF function in yaml2coff it's pretty bare-metal. >>> The logic you need will be almost identical, except that instead of >>> checking the COFFParser for the various fields, you'll check the existing >>> COFFObjectFile, which should have similar fields. >>> &...
2018 Jan 20
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...t;> >>> >>> I think your phrase got cut there, but yeah I just found AsmPrinter.cpp >>> and it is convoluted. >>> >>> >>> >>>> It's true that yaml2coff is using the COFFParser structure, but if you >>>> look at the writeCOFF function in yaml2coff it's pretty bare-metal. >>>> The logic you need will be almost identical, except that instead of >>>> checking the COFFParser for the various fields, you'll check the existing >>>> COFFObjectFile, which should have similar fields. &g...
2018 Jan 20
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...>> I think your phrase got cut there, but yeah I just found AsmPrinter.cpp >>>> and it is convoluted. >>>> >>>> >>>> >>>>> It's true that yaml2coff is using the COFFParser structure, but if you >>>>> look at the writeCOFF function in yaml2coff it's pretty bare-metal. >>>>> The logic you need will be almost identical, except that instead of >>>>> checking the COFFParser for the various fields, you'll check the existing >>>>> COFFObjectFile, which should have simila...
2018 Jan 20
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...rase got cut there, but yeah I just found >>>>> AsmPrinter.cpp and it is convoluted. >>>>> >>>>> >>>>> >>>>>> It's true that yaml2coff is using the COFFParser structure, but if >>>>>> you look at the writeCOFF function in yaml2coff it's pretty >>>>>> bare-metal. The logic you need will be almost identical, except that >>>>>> instead of checking the COFFParser for the various fields, you'll check the >>>>>> existing COFFObjectFile, which shoul...
2018 Jan 22
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...t;>>>>> AsmPrinter.cpp and it is convoluted. >>>>>>> >>>>>>> >>>>>>> >>>>>>>> It's true that yaml2coff is using the COFFParser structure, but if >>>>>>>> you look at the writeCOFF function in yaml2coff it's pretty >>>>>>>> bare-metal. The logic you need will be almost identical, except that >>>>>>>> instead of checking the COFFParser for the various fields, you'll check the >>>>>>>> existing COF...
2018 Jan 21
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...yeah I just found >>>>>> AsmPrinter.cpp and it is convoluted. >>>>>> >>>>>> >>>>>> >>>>>>> It's true that yaml2coff is using the COFFParser structure, but if >>>>>>> you look at the writeCOFF function in yaml2coff it's pretty >>>>>>> bare-metal. The logic you need will be almost identical, except that >>>>>>> instead of checking the COFFParser for the various fields, you'll check the >>>>>>> existing COFFObjectFile,...
2018 Jan 22
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...t; AsmPrinter.cpp and it is convoluted. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> It's true that yaml2coff is using the COFFParser structure, but if >>>>>>>>> you look at the writeCOFF function in yaml2coff it's pretty >>>>>>>>> bare-metal. The logic you need will be almost identical, except that >>>>>>>>> instead of checking the COFFParser for the various fields, you'll check the >>>>>>>>>...
2018 Jan 22
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...d it is convoluted. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> It's true that yaml2coff is using the COFFParser structure, but >>>>>>>>>> if you look at the writeCOFF function in yaml2coff it's pretty >>>>>>>>>> bare-metal. The logic you need will be almost identical, except that >>>>>>>>>> instead of checking the COFFParser for the various fields, you'll check the >>>>>>>&...
2018 Jan 22
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>>> It's true that yaml2coff is using the COFFParser structure, but >>>>>>>>>>>> if you look at the writeCOFF function in yaml2coff it's pretty >>>>>>>>>>>> bare-metal. The logic you need will be almost identical, except that >>>>>>>>>>>> instead of checking the COFFParser for the various fields, you'll check the >>>&...
2018 Jan 22
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> It's true that yaml2coff is using the COFFParser structure, but >>>>>>>>>>> if you look at the writeCOFF function in yaml2coff it's pretty >>>>>>>>>>> bare-metal. The logic you need will be almost identical, except that >>>>>>>>>>> instead of checking the COFFParser for the various fields, you'll check the >>>>>&...
2018 Jan 24
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...;>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>>> It's true that yaml2coff is using the COFFParser structure, >>>>>>>>>>>>>> but if you look at the writeCOFF function in yaml2coff it's >>>>>>>>>>>>>> pretty bare-metal. The logic you need will be almost identical, except >>>>>>>>>>>>>> that instead of checking the COFFParser for the various fields, you'll >&gt...
2018 Jan 22
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>>> It's true that yaml2coff is using the COFFParser structure, >>>>>>>>>>>>> but if you look at the writeCOFF function in yaml2coff it's >>>>>>>>>>>>> pretty bare-metal. The logic you need will be almost identical, except >>>>>>>>>>>>> that instead of checking the COFFParser for the various fields, you'll >>>&gt...
2018 Jan 25
0
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...;>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>>> It's true that yaml2coff is using the COFFParser structure, >>>>>>>>>>>>>>> but if you look at the writeCOFF function in yaml2coff it's >>>>>>>>>>>>>>> pretty bare-metal. The logic you need will be almost identical, except >>>>>>>>>>>>>>> that instead of checking the COFFParser for the various fields, you'll...
2018 Jan 25
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...;>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> It's true that yaml2coff is using the COFFParser structure, >>>>>>>>>>>>>>>> but if you look at the writeCOFF function in yaml2coff >>>>>>>>>>>>>>>> it's pretty bare-metal. The logic you need will be almost identical, >>>>>>>>>>>>>>>> except that instead of checking the COFFParser for the various fields, &g...
2018 Jan 25
2
[lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
...t;>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> It's true that yaml2coff is using the COFFParser >>>>>>>>>>>>>>>>>> structure, but if you look at the writeCOFF function in >>>>>>>>>>>>>>>>>> yaml2coff it's pretty bare-metal. The logic you need will be almost >>>>>>>>>>>>>>>>>> identical, except that instead of checking the COFFParser for the va...