@@ -329,8 +329,6 @@ var optab = []Optab{
329
329
{obj .ANOP , C_NONE , C_NONE , C_NONE , 0 , 0 , 0 , 0 , 0 , 0 },
330
330
{obj .ADUFFZERO , C_NONE , C_NONE , C_SBRA , 5 , 4 , 0 , 0 , 0 , 0 }, // same as ABL
331
331
{obj .ADUFFCOPY , C_NONE , C_NONE , C_SBRA , 5 , 4 , 0 , 0 , 0 , 0 }, // same as ABL
332
- {ADATABUNDLE , C_NONE , C_NONE , C_NONE , 100 , 4 , 0 , 0 , 0 , 0 },
333
- {ADATABUNDLEEND , C_NONE , C_NONE , C_NONE , 100 , 0 , 0 , 0 , 0 , 0 },
334
332
{obj .AXXX , C_NONE , C_NONE , C_NONE , 0 , 4 , 0 , 0 , 0 , 0 },
335
333
}
336
334
@@ -434,7 +432,7 @@ func span5(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
434
432
}
435
433
}
436
434
437
- if m == 0 && (p .As != obj .AFUNCDATA && p .As != obj .APCDATA && p .As != ADATABUNDLEEND && p . As != obj .ANOP ) {
435
+ if m == 0 && (p .As != obj .AFUNCDATA && p .As != obj .APCDATA && p .As != obj .ANOP ) {
438
436
ctxt .Diag ("zero-width instruction\n %v" , p )
439
437
continue
440
438
}
@@ -522,7 +520,7 @@ func span5(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
522
520
if m / 4 > len (out ) {
523
521
ctxt .Diag ("instruction size too large: %d > %d" , m / 4 , len (out ))
524
522
}
525
- if m == 0 && (p .As != obj .AFUNCDATA && p .As != obj .APCDATA && p .As != ADATABUNDLEEND && p . As != obj .ANOP ) {
523
+ if m == 0 && (p .As != obj .AFUNCDATA && p .As != obj .APCDATA && p .As != obj .ANOP ) {
526
524
if p .As == obj .ATEXT {
527
525
c .autosize = p .To .Offset + 4
528
526
continue
@@ -615,7 +613,6 @@ func span5(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
615
613
func (c * ctxt5 ) checkpool (p * obj.Prog , nextpc int32 ) bool {
616
614
poolLast := nextpc
617
615
poolLast += 4 // the AB instruction to jump around the pool
618
- poolLast += 12 // the maximum nacl alignment padding for ADATABUNDLE
619
616
poolLast += int32 (c .pool .size ) - 4 // the offset of the last pool entry
620
617
621
618
refPC := int32 (c .pool .start ) // PC of the first pool reference
@@ -643,7 +640,7 @@ func (c *ctxt5) flushpool(p *obj.Prog, skip int, force int) bool {
643
640
q .Link = c .blitrl
644
641
q .Pos = p .Pos
645
642
c .blitrl = q
646
- } else if force == 0 && (p .Pc + int64 (12 + c .pool .size )- int64 (c .pool .start ) < 2048 ) { // 12 take into account the maximum nacl literal pool alignment padding size
643
+ } else if force == 0 && (p .Pc + int64 (c .pool .size )- int64 (c .pool .start ) < 2048 ) {
647
644
return false
648
645
}
649
646
@@ -1424,9 +1421,7 @@ func buildop(ctxt *obj.Link) {
1424
1421
obj .AUNDEF ,
1425
1422
obj .AFUNCDATA ,
1426
1423
obj .APCDATA ,
1427
- obj .ANOP ,
1428
- ADATABUNDLE ,
1429
- ADATABUNDLEEND :
1424
+ obj .ANOP :
1430
1425
break
1431
1426
}
1432
1427
}
@@ -2481,13 +2476,6 @@ func (c *ctxt5) asmout(p *obj.Prog, o *Optab, out []uint32) {
2481
2476
o1 |= (uint32 (p .Reg ) & 15 ) << 0
2482
2477
o1 |= uint32 ((p .To .Offset & 15 ) << 12 )
2483
2478
2484
- // DATABUNDLE: BKPT $0x5be0, signify the start of NaCl data bundle;
2485
- // DATABUNDLEEND: zero width alignment marker
2486
- case 100 :
2487
- if p .As == ADATABUNDLE {
2488
- o1 = 0xe125be70
2489
- }
2490
-
2491
2479
case 105 : /* divhw r,[r,]r */
2492
2480
o1 = c .oprrr (p , p .As , int (p .Scond ))
2493
2481
rf := int (p .From .Reg )
0 commit comments