mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-23 11:32:07 +00:00
Allow linker script to consider section attributes
The linker script now allows you to assign a section with the same attributes as in the source. To do this, I've removed a check from AssignSectionAddressAndBankByName that would never be triggered, due to that condition being checked before. Shouldn't this and IsSectionSameTypeBankAndAttrs be condensed into a single function?
This commit is contained in:
@@ -16,6 +16,14 @@ head -c 20 $gbtemp > $otemp 2>&1
|
||||
diff bank-numbers.out.bin $otemp
|
||||
rc=$(($? || $rc))
|
||||
|
||||
$RGBASM -o $otemp section-attributes.asm
|
||||
$RGBLINK -l section-attributes.link -o $gbtemp $otemp > $outtemp 2>&1
|
||||
diff section-attributes.out $outtemp
|
||||
rc=$(($? || $rc))
|
||||
$RGBLINK -l section-attributes-mismatch.link -o $gbtemp $otemp > $outtemp 2>&1
|
||||
diff section-attributes-mismatch.out $outtemp
|
||||
rc=$(($? || $rc))
|
||||
|
||||
$RGBASM -o $otemp wramx-dmg-mode.asm
|
||||
$RGBLINK -o $gbtemp $otemp > $outtemp 2>&1
|
||||
diff wramx-dmg-mode-no-d.out $outtemp
|
||||
@@ -60,4 +68,5 @@ $RGBLINK -o $gbtemp $otemp
|
||||
diff all-instructions.out.bin $gbtemp
|
||||
rc=$(($? || $rc))
|
||||
|
||||
rm -f $otemp $gbtemp $gbtemp2 $outtemp
|
||||
exit $rc
|
||||
|
||||
Reference in New Issue
Block a user