[PATCH] ppc32: Kill embedded system.map, use kallsyms
This patch kills the whole embedded System.map mecanism and the bootloader-passed System.map that was used to provide symbol resolution in xmon. Instead, xmon now uses kallsyms like ppc64 does. No hurry getting that in Linus tree, let it be tested in -mm for a while first and make sure it doesn't break various embedded configs. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
a70d439345
commit
6879dc137e
@@ -15,7 +15,6 @@
|
||||
#include <asm/page.h>
|
||||
|
||||
/* Information from the linker */
|
||||
extern char __sysmap_begin, __sysmap_end;
|
||||
|
||||
extern int strcmp(const char *s1, const char *s2);
|
||||
extern char *avail_ram, *avail_high;
|
||||
@@ -116,14 +115,8 @@ void gunzip(void *dst, int dstlen, unsigned char *src, int *lenp)
|
||||
void make_bi_recs(unsigned long addr, char *name, unsigned int mach,
|
||||
unsigned long progend)
|
||||
{
|
||||
unsigned long sysmap_size;
|
||||
struct bi_record *rec;
|
||||
|
||||
/* Figure out the size of a possible System.map we're going to
|
||||
* pass along.
|
||||
* */
|
||||
sysmap_size = (unsigned long)(&__sysmap_end) -
|
||||
(unsigned long)(&__sysmap_begin);
|
||||
|
||||
/* leave a 1MB gap then align to the next 1MB boundary */
|
||||
addr = _ALIGN(addr+ (1<<20) - 1, (1<<20));
|
||||
@@ -147,15 +140,6 @@ void make_bi_recs(unsigned long addr, char *name, unsigned int mach,
|
||||
rec->size = sizeof(struct bi_record) + 2 * sizeof(unsigned long);
|
||||
rec = (struct bi_record *)((unsigned long)rec + rec->size);
|
||||
|
||||
if (sysmap_size) {
|
||||
rec->tag = BI_SYSMAP;
|
||||
rec->data[0] = (unsigned long)(&__sysmap_begin);
|
||||
rec->data[1] = sysmap_size;
|
||||
rec->size = sizeof(struct bi_record) + 2 *
|
||||
sizeof(unsigned long);
|
||||
rec = (struct bi_record *)((unsigned long)rec + rec->size);
|
||||
}
|
||||
|
||||
rec->tag = BI_LAST;
|
||||
rec->size = sizeof(struct bi_record);
|
||||
rec = (struct bi_record *)((unsigned long)rec + rec->size);
|
||||
|
Reference in New Issue
Block a user