Displaying 9 results from an estimated 9 matches for "numsections".
2012 Jun 12
4
[LLVMdev] Questions about llvm/Object/COFF.h
...a coff_section ? ]
While I'm puzzling over that, I look some more, and I see:
error_code getSection(int32_t index, const coff_section *&Res) const;
Cool. (A bit weird; why a signed index?, but whatever)
So I write:
const llvm::object::coff_section *sect;
for (std::size_t i = 0; i < NumSections; ++i)
Obj.getSection(i, sect);
And my program dies with a segmentation fault.
Turns out that sect == NULL.
More looking, I see that the sections are numbered 1 … N, not 0 ... N-1
Now I'm really really confused. Why?
BTW - patch attached to add pre-increment to llvm::content_iterator (wh...
2004 Feb 14
0
Memdisk/floppy image question
Here is the script I put together now. I hope I haven't overlooked
anything.
You might need to modify the first section of variables to suit your setup.
Ofcourse you need to run this as root. May be some version of this
should be included with syslinux?
Basically given an existing floppy image, it creates a larger image and
copies its contents over and sets up the bootsector of the
2012 Jun 12
0
[LLVMdev] Questions about llvm/Object/COFF.h
...t, I look some more, and I see:
> error_code getSection(int32_t index, const coff_section *&Res)
> const;
>
> Cool. (A bit weird; why a signed index?, but whatever)
> So I write:
> const llvm::object::coff_section *sect;
> for (std::size_t i = 0; i < NumSections; ++i)
> Obj.getSection(i, sect);
>
> And my program dies with a segmentation fault.
> Turns out that sect == NULL.
> More looking, I see that the sections are numbered 1 … N, not 0 ... N-1
>
> Now I'm really really confused. Why?
>
> BTW - patch attach...
2012 Jun 12
0
[LLVMdev] Questions about llvm/Object/COFF.h
...r that, I look some more, and I see:
> error_code getSection(int32_t index, const coff_section *&Res) const;
>
> Cool. (A bit weird; why a signed index?, but whatever)
> So I write:
> const llvm::object::coff_section *sect;
> for (std::size_t i = 0; i < NumSections; ++i)
> Obj.getSection(i, sect);
>
> And my program dies with a segmentation fault.
> Turns out that sect == NULL.
> More looking, I see that the sections are numbered 1 … N, not 0 ... N-1
>
> Now I'm really really confused. Why?
This is because that is how...
2008 Aug 22
2
zpool autoexpand property - HowTo question
I noted this PSARC thread with interest:
Re: zpool autoexpand property [PSARC/2008/353 Self Review]
because it so happens that during a recent disk upgrade,
on a laptop. I''ve migrated a zpool off of one partition
onto a slightly larger one, and I''d like to somehow tell
zfs to grow the zpool to fill the new partition. So,
what''s the best way to do this? (and is it
2008 Sep 29
1
B98 Solaris DomU on B98 Solaris Dom0 - installer not finding disks
Greetings,
I have a problem that is baffling me. My host machine is an older Dual Xeon machine that does not support HVM - PAE is supported.
I have 2008.11 b98 installed as Dom0. I''m trying to install the same as a DomU.
In the DomU, I''m starting the ssh service, logging in with X forwarding and starting the gui with:
(dom1) jack$ pfexec gui-install
The gui displays on my
2012 Jun 13
1
[LLVMdev] Questions about llvm/Object/COFF.h
...:
> > error_code getSection(int32_t index, const coff_section *&Res)
> const;
> >
> > Cool. (A bit weird; why a signed index?, but whatever)
> > So I write:
> > const llvm::object::coff_section *sect;
> > for (std::size_t i = 0; i < NumSections; ++i)
> > Obj.getSection(i, sect);
> >
> > And my program dies with a segmentation fault.
> > Turns out that sect == NULL.
> > More looking, I see that the sections are numbered 1 … N, not 0 ... N-1
> >
> > Now I'm really really confused....
2010 Dec 10
3
[PATCH 1/7] staging: hv: Convert camel cased variables in netvsc.c to lower cases
...6 @@ static int NetVscInitializeReceiveBufferWithNetVsp(struct hv_device *Device)
/* ASSERT(netDevice->ReceiveSectionCount == 0); */
/* ASSERT(netDevice->ReceiveSections == NULL); */
- netDevice->ReceiveSectionCount = initPacket->Messages.Version1Messages.SendReceiveBufferComplete.NumSections;
+ net_device->ReceiveSectionCount = init_packet->Messages.
+ Version1Messages.SendReceiveBufferComplete.NumSections;
- netDevice->ReceiveSections = kmalloc(netDevice->ReceiveSectionCount * sizeof(struct nvsp_1_receive_buffer_section), GFP_KERNEL);
- if (netDevice->ReceiveSections...
2010 Dec 10
3
[PATCH 1/7] staging: hv: Convert camel cased variables in netvsc.c to lower cases
...6 @@ static int NetVscInitializeReceiveBufferWithNetVsp(struct hv_device *Device)
/* ASSERT(netDevice->ReceiveSectionCount == 0); */
/* ASSERT(netDevice->ReceiveSections == NULL); */
- netDevice->ReceiveSectionCount = initPacket->Messages.Version1Messages.SendReceiveBufferComplete.NumSections;
+ net_device->ReceiveSectionCount = init_packet->Messages.
+ Version1Messages.SendReceiveBufferComplete.NumSections;
- netDevice->ReceiveSections = kmalloc(netDevice->ReceiveSectionCount * sizeof(struct nvsp_1_receive_buffer_section), GFP_KERNEL);
- if (netDevice->ReceiveSections...