Changeset 4646710 in mainline for boot/arch/ppc32


Ignore:
Timestamp:
2017-06-07T15:39:23Z (8 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
239e32b8
Parents:
22299ed
Message:

replace objcopy with mkarray.py
(objcopy is notoriously problematic due to the uncontrolable way how it generates the object files, with what flags, etc.)

Location:
boot/arch/ppc32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/ppc32/Makefile.inc

    r22299ed r4646710  
    5757        arch/$(BARCH)/src/main.c \
    5858        arch/$(BARCH)/src/ofw.c \
    59         $(COMPS_C) \
     59        $(COMPS).s \
     60        $(COMPS)_desc.c \
    6061        genarch/src/ofw.c \
    6162        genarch/src/ofw_tree.c \
     
    7071        generic/src/version.c \
    7172        generic/src/inflate.c
     73
     74PRE_DEPEND = $(COMPS).s $(COMPS).h $(COMPS)_desc.c
  • boot/arch/ppc32/_link.ld.in

    r22299ed r4646710  
    1818                *(.bss);        /* uninitialized static variables */
    1919                *(COMMON);      /* global variables */
    20 [[COMPONENTS]]
     20                *(.components);
    2121        }
    2222       
  • boot/arch/ppc32/src/main.c

    r22299ed r4646710  
    3030#include <arch/arch.h>
    3131#include <arch/asm.h>
    32 #include <arch/_components.h>
    3332#include <genarch/ofw.h>
    3433#include <genarch/ofw_tree.h>
     
    4241#include <errno.h>
    4342#include <inflate.h>
     43#include "../../components.h"
    4444
    4545#define BALLOC_MAX_SIZE  131072
     
    7575        size_t i;
    7676        for (i = 0; i < COMPONENTS; i++)
    77                 printf(" %p|%p: %s image (%zu/%zu bytes)\n", components[i].start,
    78                     ofw_translate(components[i].start), components[i].name,
     77                printf(" %p|%p: %s image (%zu/%zu bytes)\n", components[i].addr,
     78                    ofw_translate(components[i].addr), components[i].name,
    7979                    components[i].inflated, components[i].size);
    8080       
     
    139139                printf("%s ", components[i - 1].name);
    140140               
    141                 int err = inflate(components[i - 1].start, components[i - 1].size,
     141                int err = inflate(components[i - 1].addr, components[i - 1].size,
    142142                    inflate_base + dest[i - 1], components[i - 1].inflated);
    143143               
Note: See TracChangeset for help on using the changeset viewer.