search for: computefileoffset

Displaying 7 results from an estimated 7 matches for "computefileoffset".

2020 Nov 15
2
lld error: output file too large <some large number>
Hi I’m having a trouble linking a special program with lld and the above error is generated. I narrowed it down to lld/Writer.cpp:getFileAlignment (). (Well, my local repository is from a while back (version 10) and for me it is lld/Writer.cpp:computeFileOffset ()) Either way, where it is calculating the file offset when two sections share same PT_LOAD, the formula used is off2 = off1 + (VA2 – VA1) but the subtraction is causing a negative number, causing out of bound value… Should this be abs(VA2 – VA1) ? Or Should it be cast to a signed integer so we s...
2020 Nov 16
2
lld error: output file too large <some large number>
...; Hi > > I’m having a trouble linking a special program with lld and the above error is generated. > > I narrowed it down to lld/Writer.cpp:getFileAlignment (). > > (Well, my local repository is from a while back (version 10) and for me it is lld/Writer.cpp:computeFileOffset ()) > > Either way, where it is calculating the file offset when two sections share same PT_LOAD, the formula used is off2 = off1 + (VA2 – VA1) but the subtraction is causing a negative number, causing out of bound value… > > > > Should this be abs(VA2 – VA...
2020 Nov 16
2
lld error: output file too large <some large number>
...trouble linking a special program with lld and the above error is generated. > > > > I narrowed it down to lld/Writer.cpp:getFileAlignment (). > > > > (Well, my local repository is from a while back (version 10) and for me it is lld/Writer.cpp:computeFileOffset ()) > > > > Either way, where it is calculating the file offset when two sections share same PT_LOAD, the formula used is off2 = off1 + (VA2 – VA1) but the subtraction is causing a negative number, causing out of bound value… > > > > >...
2020 Nov 16
1
lld error: output file too large <some large number>
...th lld and the above error is generated. > > > > > > I narrowed it down to lld/Writer.cpp:getFileAlignment (). > > > > > > (Well, my local repository is from a while back (version 10) and for me it is lld/Writer.cpp:computeFileOffset ()) > > > > > > Either way, where it is calculating the file offset when two sections share same PT_LOAD, the formula used is off2 = off1 + (VA2 – VA1) but the subtraction is causing a negative number, causing out of bound value… > > >...
2020 Nov 16
0
lld error: output file too large <some large number>
....org> wrote: > > Hi > > I’m having a trouble linking a special program with lld and the above error is generated. > > I narrowed it down to lld/Writer.cpp:getFileAlignment (). > > (Well, my local repository is from a while back (version 10) and for me it is lld/Writer.cpp:computeFileOffset ()) > > Either way, where it is calculating the file offset when two sections share same PT_LOAD, the formula used is off2 = off1 + (VA2 – VA1) but the subtraction is causing a negative number, causing out of bound value… > > > > Should this be abs(VA2 – VA1) ? > > Or > &...
2020 Nov 16
0
lld error: output file too large <some large number>
...t; I’m having a trouble linking a special program with lld and the above error is generated. > > > > I narrowed it down to lld/Writer.cpp:getFileAlignment (). > > > > (Well, my local repository is from a while back (version 10) and for me it is lld/Writer.cpp:computeFileOffset ()) > > > > Either way, where it is calculating the file offset when two sections share same PT_LOAD, the formula used is off2 = off1 + (VA2 – VA1) but the subtraction is causing a negative number, causing out of bound value… > > > > > > > &g...
2020 Nov 16
0
lld error: output file too large <some large number>
...a special program with lld and the above error is generated. > > > > I narrowed it down to lld/Writer.cpp:getFileAlignment (). > > > > (Well, my local repository is from a while back (version 10) and for me it is lld/Writer.cpp:computeFileOffset ()) > > > > Either way, where it is calculating the file offset when two sections share same PT_LOAD, the formula used is off2 = off1 + (VA2 – VA1) but the subtraction is causing a negative number, causing out of bound value… > > >...