Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23732
b: refs/heads/master
c: c79c7b0
h: refs/heads/master
v: v3
  • Loading branch information
Sam Ravnborg committed Mar 12, 2006
1 parent 2e01de1 commit 4b7f4c6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 172c3ae3e686f548a0eba950405e5cc321460005
refs/heads/master: c79c7b0923ff353d12194e83628bcca5a8606564
2 changes: 1 addition & 1 deletion trunk/scripts/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ cmd_cc_o_c = $(CC) $(c_flags) -c -o $(@D)/.tmp_$(@F) $<
cmd_modversions = \
if $(OBJDUMP) -h $(@D)/.tmp_$(@F) | grep -q __ksymtab; then \
$(CPP) -D__GENKSYMS__ $(c_flags) $< \
| $(GENKSYMS) \
| $(GENKSYMS) -a $(ARCH) \
> $(@D)/.tmp_$(@F:.o=.ver); \
\
$(LD) $(LDFLAGS) -r -o $@ $(@D)/.tmp_$(@F) \
Expand Down
17 changes: 12 additions & 5 deletions trunk/scripts/genksyms/genksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#endif /* __GNU_LIBRARY__ */

#include "genksyms.h"
#include "../mod/elfconfig.h"
/*----------------------------------------------------------------------*/

#define HASH_BUCKETS 4096
Expand All @@ -44,6 +43,8 @@ int cur_line = 1;
char *cur_filename, *output_directory;

int flag_debug, flag_dump_defs, flag_warnings;
const char *arch = "";
const char *mod_prefix = "";

static int errors;
static int nsyms;
Expand Down Expand Up @@ -458,7 +459,7 @@ export_symbol(const char *name)
fputs(">\n", debugfile);

/* Used as a linker script. */
printf("%s__crc_%s = 0x%08lx ;\n", MODULE_SYMBOL_PREFIX, name, crc);
printf("%s__crc_%s = 0x%08lx ;\n", mod_prefix, name, crc);
}
}

Expand Down Expand Up @@ -529,6 +530,7 @@ main(int argc, char **argv)

#ifdef __GNU_LIBRARY__
struct option long_opts[] = {
{"arch", 1, 0, 'a'},
{"debug", 0, 0, 'd'},
{"warnings", 0, 0, 'w'},
{"quiet", 0, 0, 'q'},
Expand All @@ -538,13 +540,16 @@ main(int argc, char **argv)
{0, 0, 0, 0}
};

while ((o = getopt_long(argc, argv, "dwqVDk:p:",
while ((o = getopt_long(argc, argv, "a:dwqVDk:p:",
&long_opts[0], NULL)) != EOF)
#else /* __GNU_LIBRARY__ */
while ((o = getopt(argc, argv, "dwqVDk:p:")) != EOF)
while ((o = getopt(argc, argv, "a:dwqVDk:p:")) != EOF)
#endif /* __GNU_LIBRARY__ */
switch (o)
{
case 'a':
arch = optarg;
break;
case 'd':
flag_debug++;
break;
Expand All @@ -567,7 +572,9 @@ main(int argc, char **argv)
genksyms_usage();
return 1;
}

if ((strcmp(arch, "v850") == 0) ||
(strcmp(arch, "h8300") == 0))
mod_prefix = "_";
{
extern int yydebug;
extern int yy_flex_debug;
Expand Down

0 comments on commit 4b7f4c6

Please sign in to comment.