bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/2756] m68k-linux still has #APP/#NO_APP issue


From: balkohen at gmail dot com
Subject: [Bug gas/2756] m68k-linux still has #APP/#NO_APP issue
Date: 23 Jun 2006 14:27:25 -0000

------- Additional Comments From balkohen at gmail dot com  2006-06-23 14:27 
-------
Here is a very stripped down localealias.c:


#define __make_section_unallocated(section_string) \
  asm (".section " section_string "\n\t.previous");

#define __sec_comment "\"\n\t#\""

#define libc_freeres_ptr(decl) \
  __make_section_unallocated ("__libc_freeres_ptrs, \"aw\", %nobits") \
  decl __attribute__ ((section ("__libc_freeres_ptrs" __sec_comment)))

extern void *realloc(void *ptr, int size);

struct alias_map
{
  const char *alias;
  const char *value;
};

libc_freeres_ptr (static struct alias_map *map);
libc_freeres_ptr (static char *string_space);

static int string_space_max;

int
read_alias_file (fname, fname_len)
     const char *fname;
     int fname_len;
{
  int  added = 0;
  int alias_len = 0;
  int value_len = 0;
  int new_size = (string_space_max + (alias_len + value_len > 1024 ? alias_len +
value_len : 1024));
  char *new_pool = (char *) realloc (string_space, new_size);
  
  int i;

  for (i = 0; i < 10; i++)
  {
    map[i].alias += new_pool - string_space;
    map[i].value += new_pool - string_space;
  }
  
  return added;
}

const char *
_nl_expand_alias (name)
    const char *name;
{
  int added = 0;
  static const char *locale_alias_path = "/share/locale";

      while (added == 0 && locale_alias_path[0] != '\0')
        {
          const char *start;

          while (locale_alias_path[0] == ':')
            ++locale_alias_path;
          start = locale_alias_path;

          if (start < locale_alias_path)
            added = read_alias_file (start, locale_alias_path - start);
        }
        
        return '\0';
}


$ m68k-unknown-linux-gnu-gcc -v
Using built-in specs.
Target: m68k-unknown-linux-gnu
Configured with: ../gcc-4.1.1/configure --prefix=/home/lior/builds/m68k/cdk
--disable-nls --target=m68k-unknown-linux-gnu --disable-shared --disable-threads
--disable-libmudflap --disable-libssp --enable-languages=c
Thread model: single
gcc version 4.1.1


$ m68k-unknown-linux-gnu-as --version
GNU assembler 2.17.50.0.2 20060526
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `m68k-unknown-linux-gnu'.


$ m68k-unknown-linux-gnu-gcc -Wall -O -c localealias.c
/tmp/ccF8XX4h.s: Assembler messages:
/tmp/ccF8XX4h.s:72: Error: junk at end of line, first unrecognized character is 
`"'

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2756

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]