Hi, Following is a modutils patch that complements __dbe_table handling for modules for mips. Maciej -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + modutils-2.4.6-mips-dbe.patch diff -up --recursive --new-file modutils-2.4.6.macro/obj/obj_mips.c modutils-2.4.6/obj/obj_mips.c --- modutils-2.4.6.macro/obj/obj_mips.c Fri Jan 5 01:45:19 2001 +++ modutils-2.4.6/obj/obj_mips.c Mon Aug 20 03:47:36 2001 @@ -232,7 +232,26 @@ arch_finalize_section_address(struct obj } int -arch_archdata (struct obj_file *fin, struct obj_section *sec) +arch_archdata (struct obj_file *f, struct obj_section *archdata_sec) { + struct archdata { + unsigned tgt_long dbe_table_start; + unsigned tgt_long dbe_table_end; + } *ad; + struct obj_section *sec; + + free(archdata_sec->contents); + archdata_sec->contents = xmalloc(sizeof(struct archdata)); + memset(archdata_sec->contents, 0, sizeof(struct archdata)); + archdata_sec->header.sh_size = sizeof(struct archdata); + + ad = (struct archdata *)(archdata_sec->contents); + + sec = obj_find_section(f, "__dbe_table"); + if (sec) { + ad->dbe_table_start = sec->header.sh_addr; + ad->dbe_table_end = sec->header.sh_addr + sec->header.sh_size; + } + return 0; }