public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: include/elf/hppa.h in gdb 4.18
  1999-07-01  0:00 include/elf/hppa.h in gdb 4.18 joel
@ 1999-07-01  0:00 ` Jeffrey A Law
  1999-07-01  0:00   ` joel
  1999-07-01  0:00 ` joel
  1 sibling, 1 reply; 6+ messages in thread
From: Jeffrey A Law @ 1999-07-01  0:00 UTC (permalink / raw)
  To: joel; +Cc: binutils

  In message < Pine.LNX.4.10.9906211344120.30023-100000@oar3remote >you write:
  > 
  > Target: hppa1.1-rtems (a.k.a hppa*-*-*elf* | hppa*-*-lites* |
  >                              hppa*-*-sysv4* )
  > 
  > Since this is a bfd compilation problem for the version in gdb 4.18, I
  > thought I would report this here first for a hint.  
Don't even try to use the PA ELF tools right now.  They're under major
reorganization.

I'd forgotten RTEMS depended on this stuff.  Ugh.

jeff



^ permalink raw reply	[flat|nested] 6+ messages in thread

* include/elf/hppa.h in gdb 4.18
@ 1999-07-01  0:00 joel
  1999-07-01  0:00 ` Jeffrey A Law
  1999-07-01  0:00 ` joel
  0 siblings, 2 replies; 6+ messages in thread
From: joel @ 1999-07-01  0:00 UTC (permalink / raw)
  To: binutils

Target: hppa1.1-rtems (a.k.a hppa*-*-*elf* | hppa*-*-lites* |
                             hppa*-*-sysv4* )

Since this is a bfd compilation problem for the version in gdb 4.18, I
thought I would report this here first for a hint.  

gcc -DHAVE_CONFIG_H -I. -I../../gdb-4.18/bfd -I. -D_GNU_SOURCE -I.
-I../../gdb-4.18/bfd -I../../gdb-4.18/bfd/../include -I../../gdb-4.18/bfd/../intl
-I../intl -O2 -g -c ../../gdb-4.18/bfd/elf32-hppa.c
In file included from ../../gdb-4.18/bfd/elf32-hppa.h:36,
                 from ../../gdb-4.18/bfd/elf32-hppa.c:199:
../../gdb-4.18/bfd/../include/elf/hppa.h:184: `elf32_hppa_reloc_type'
redeclared as different kind of symbol
../../gdb-4.18/bfd/../include/elf/hppa.h:100: previous declaration of
`elf32_hppa_reloc_type'

When I look at the file include/elf/hppa.h, I see that around line 184 is
this:

#ifndef RELOC_MACROS_GEN_FUNC
typedef enum elf32_hppa_reloc_type elf32_hppa_reloc_type;
#endif

No other elf/*.h file has anything like this.  Is the problem solution to
remove these three lines?

--joel
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: include/elf/hppa.h in gdb 4.18
  1999-07-01  0:00   ` joel
@ 1999-07-01  0:00     ` Jeffrey A Law
  1999-07-01  0:00       ` joel
  0 siblings, 1 reply; 6+ messages in thread
From: Jeffrey A Law @ 1999-07-01  0:00 UTC (permalink / raw)
  To: joel; +Cc: binutils

  In message < Pine.LNX.4.10.9906211444540.30178-100000@oar3remote >you write:
  > > Don't even try to use the PA ELF tools right now.  They're under major
  > > reorganization.
  > 
  > OK.  I was just trying to update the gdb RTEMS patch to 4.18.
If you're just trying to get up to gdb-4.18 you can probably make a little
tweak or two.  For some reason I thought you were trying to get the
mainline code building.  You can probably delete the offending code in your
gdb-4.18 rtems patch.

  > > I'd forgotten RTEMS depended on this stuff.  Ugh.
  > 
  > The RTEMS target is not much more than an alias.  If I need to change to
  > basing it on another target, it is not a big deal. Just let me know what
  > the best embedded hppa1.1 target is once this settles out again.
I doubt you'll need to change it.  We're just going to have to create a lot of
construction debris in the PA ELF code for a while.

I'll be primarily concentrating on 64bit ELF, but it's going to have serious
impact on the 32bit ELF tools.  The Linux folks are going to be beating on the
32bit ELF tools (hopefully in parallel).


jeff

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: include/elf/hppa.h in gdb 4.18
  1999-07-01  0:00 ` Jeffrey A Law
@ 1999-07-01  0:00   ` joel
  1999-07-01  0:00     ` Jeffrey A Law
  0 siblings, 1 reply; 6+ messages in thread
From: joel @ 1999-07-01  0:00 UTC (permalink / raw)
  To: Jeffrey A Law; +Cc: binutils

On Mon, 21 Jun 1999, Jeffrey A Law wrote:

> 
>   In message < Pine.LNX.4.10.9906211344120.30023-100000@oar3remote >you write:
>   > 
>   > Target: hppa1.1-rtems (a.k.a hppa*-*-*elf* | hppa*-*-lites* |
>   >                              hppa*-*-sysv4* )
>   > 
>   > Since this is a bfd compilation problem for the version in gdb 4.18, I
>   > thought I would report this here first for a hint.  
> Don't even try to use the PA ELF tools right now.  They're under major
> reorganization.

OK.  I was just trying to update the gdb RTEMS patch to 4.18.

> I'd forgotten RTEMS depended on this stuff.  Ugh.

The RTEMS target is not much more than an alias.  If I need to change to
basing it on another target, it is not a big deal. Just let me know what
the best embedded hppa1.1 target is once this settles out again.

--joel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: include/elf/hppa.h in gdb 4.18
  1999-07-01  0:00     ` Jeffrey A Law
@ 1999-07-01  0:00       ` joel
  0 siblings, 0 replies; 6+ messages in thread
From: joel @ 1999-07-01  0:00 UTC (permalink / raw)
  To: Jeffrey A Law; +Cc: binutils

On Mon, 21 Jun 1999, Jeffrey A Law wrote:

> 
>   In message < Pine.LNX.4.10.9906211444540.30178-100000@oar3remote >you write:
>   > > Don't even try to use the PA ELF tools right now.  They're under major
>   > > reorganization.
>   > 
>   > OK.  I was just trying to update the gdb RTEMS patch to 4.18.
> If you're just trying to get up to gdb-4.18 you can probably make a little
> tweak or two.  For some reason I thought you were trying to get the
> mainline code building.  You can probably delete the offending code in your
> gdb-4.18 rtems patch.

OK.  I have not checked it yet but my hunch is that hppa1.1-elf would not
build in gdb 4.18.  So far I have not found another example that looked
like that same enumerated type.  I will try to build hppa1.1-elf just to
make sure though and report on that.

>   > > I'd forgotten RTEMS depended on this stuff.  Ugh.
>   > 
>   > The RTEMS target is not much more than an alias.  If I need to change to
>   > basing it on another target, it is not a big deal. Just let me know what
>   > the best embedded hppa1.1 target is once this settles out again.
> I doubt you'll need to change it.  We're just going to have to create a lot of
> construction debris in the PA ELF code for a while.
> 
> I'll be primarily concentrating on 64bit ELF, but it's going to have serious
> impact on the 32bit ELF tools.  The Linux folks are going to be beating on the
> 32bit ELF tools (hopefully in parallel).

The hppa is not the most popular RTEMS target. :)  So I am not going to
lose much sleep over it right now.

--joel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: include/elf/hppa.h in gdb 4.18
  1999-07-01  0:00 include/elf/hppa.h in gdb 4.18 joel
  1999-07-01  0:00 ` Jeffrey A Law
@ 1999-07-01  0:00 ` joel
  1 sibling, 0 replies; 6+ messages in thread
From: joel @ 1999-07-01  0:00 UTC (permalink / raw)
  To: binutils

I hate to reply to my own question but there is other code
(bfd/elf32-hppa.h around line 57 and bfd/elf32-hppa.c around line 943)
that requires hppa_elf_gen_reloc_type.  So just deleting the typedef fixes
the first problem but creates others.

I don't know how this is supposed to be defined. :(


On Mon, 21 Jun 1999 joel@oarcorp.com wrote:

> 
> Target: hppa1.1-rtems (a.k.a hppa*-*-*elf* | hppa*-*-lites* |
>                              hppa*-*-sysv4* )
> 
> Since this is a bfd compilation problem for the version in gdb 4.18, I
> thought I would report this here first for a hint.  
> 
> gcc -DHAVE_CONFIG_H -I. -I../../gdb-4.18/bfd -I. -D_GNU_SOURCE -I.
> -I../../gdb-4.18/bfd -I../../gdb-4.18/bfd/../include -I../../gdb-4.18/bfd/../intl
> -I../intl -O2 -g -c ../../gdb-4.18/bfd/elf32-hppa.c
> In file included from ../../gdb-4.18/bfd/elf32-hppa.h:36,
>                  from ../../gdb-4.18/bfd/elf32-hppa.c:199:
> ../../gdb-4.18/bfd/../include/elf/hppa.h:184: `elf32_hppa_reloc_type'
> redeclared as different kind of symbol
> ../../gdb-4.18/bfd/../include/elf/hppa.h:100: previous declaration of
> `elf32_hppa_reloc_type'
> 
> When I look at the file include/elf/hppa.h, I see that around line 184 is
> this:
> 
> #ifndef RELOC_MACROS_GEN_FUNC
> typedef enum elf32_hppa_reloc_type elf32_hppa_reloc_type;
> #endif
> 
> No other elf/*.h file has anything like this.  Is the problem solution to
> remove these three lines?
> 
> --joel
> Joel Sherrill, Ph.D.             Director of Research & Development
> joel@OARcorp.com                 On-Line Applications Research
> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
>    Support Available             (256) 722-9985
> 
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-07-01  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-01  0:00 include/elf/hppa.h in gdb 4.18 joel
1999-07-01  0:00 ` Jeffrey A Law
1999-07-01  0:00   ` joel
1999-07-01  0:00     ` Jeffrey A Law
1999-07-01  0:00       ` joel
1999-07-01  0:00 ` joel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).