- /* Install this block as the superblock
- of all blocks made since the start of this scope
- that don't have superblocks yet. */
+#if 1
+ /* Check to be sure that the blocks have an end address that is
+ greater than starting address */
+
+ if (BLOCK_END (block) < BLOCK_START (block))
+ {
+ if (symbol)
+ {
+ complaint (&symfile_complaints,
+ _("block end address less than block start address in %s (patched it)"),
+ SYMBOL_PRINT_NAME (symbol));
+ }
+ else
+ {
+ complaint (&symfile_complaints,
+ _("block end address 0x%s less than block start address 0x%s (patched it)"),
+ paddr_nz (BLOCK_END (block)), paddr_nz (BLOCK_START (block)));
+ }
+ /* Better than nothing */
+ BLOCK_END (block) = BLOCK_START (block);
+ }
+#endif
+
+ /* Install this block as the superblock of all blocks made since the
+ start of this scope that don't have superblocks yet. */