[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2014-05-28 Thread schwab at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=12161

Andreas Schwab schwab at sourceware dot org changed:

   What|Removed |Added

 CC|jackie.rosen at hushmail dot com   |

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2014-02-16 Thread jackie.rosen at hushmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=12161

Jackie Rosen jackie.rosen at hushmail dot com changed:

   What|Removed |Added

 CC||jackie.rosen at hushmail dot 
com

--- Comment #19 from Jackie Rosen jackie.rosen at hushmail dot com ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2012-02-01 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

--- Comment #18 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2012-02-01 17:07:45 UTC ---
CVSROOT:/cvs/src
Module name:src
Branch: binutils-2_22-branch
Changes by:ni...@sourceware.org2012-02-01 17:07:37

Modified files:
bfd: ChangeLog elf32-avr.c 

Log message:
* Import this patch from the mainline:
2012-01-05  Nick Clifton  ni...@redhat.com

PR ld/12161
* elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
necessary.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=srconly_with_tag=binutils-2_22-branchr1=1.5473.2.35r2=1.5473.2.36
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-avr.c.diff?cvsroot=srconly_with_tag=binutils-2_22-branchr1=1.51r2=1.51.2.1

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2012-01-30 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

--- Comment #16 from Nick Clifton nickc at redhat dot com 2012-01-30 11:41:07 
UTC ---
Hi Georg-Johann,

 Is this only a fix for HEAD or will it be backported to 2.22, too?

It was only checked in to HEAD, although the patch will work with the 2.22
sources as well.  I have now checked it in to the 2.22 branch. so if there is a
2.22 point release then the patch will be included in that.

Cheers
  Nick

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2012-01-30 Thread gjl at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

--- Comment #17 from Georg-Johann Lay gjl at gcc dot gnu.org 2012-01-30 
12:42:09 UTC ---
(In reply to comment #16)
 Hi Georg-Johann,
 
  Is this only a fix for HEAD or will it be backported to 2.22, too?
 
 It was only checked in to HEAD, although the patch will work with the 2.22
 sources as well.  I have now checked it in to the 2.22 branch. so if there is 
 a
 2.22 point release then the patch will be included in that.

Thanks for taking care of the matter and for the quick response.

If there is the decision to have no more 2.22 release and thus your work won't
be integrated in any 2.22 release, then the release notes in
http://sourceware.org/binutils/
should mention that avr-binutils are broken for target avr and unusable.

Even if avr is no important target it would be great to have a working 2.22
avr-binutils and not a version that's completely broken...

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2012-01-29 Thread gjl at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

Georg-Johann Lay gjl at gcc dot gnu.org changed:

   What|Removed |Added

 Target||avr
 CC||gjl at gcc dot gnu.org

--- Comment #15 from Georg-Johann Lay gjl at gcc dot gnu.org 2012-01-29 
18:53:37 UTC ---
(In reply to comment #13)
 Patch committed,

Hi Nick,

I don't quite get it from the ChangeLogs... Is this only a fix for HEAD or will
it be backported to 2.22, too?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2012-01-22 Thread gjl at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

Georg-Johann Lay gjl at gcc dot gnu.org changed:

   What|Removed |Added

 CC||fabio.varesano at gmail dot
   ||com

--- Comment #14 from Georg-Johann Lay gjl at gcc dot gnu.org 2012-01-22 
14:31:25 UTC ---
*** Bug 13612 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2012-01-05 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

--- Comment #12 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2012-01-05 09:57:22 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:ni...@sourceware.org2012-01-05 09:57:18

Modified files:
bfd: ChangeLog elf32-avr.c 

Log message:
PR ld/12161
* elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
necessary.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=srcr1=1.5572r2=1.5573
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-avr.c.diff?cvsroot=srcr1=1.51r2=1.52

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2012-01-05 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

Nick Clifton nickc at redhat dot com changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED

--- Comment #13 from Nick Clifton nickc at redhat dot com 2012-01-05 10:08:28 
UTC ---
Patch committed,

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2012-01-04 Thread pitchumani.s at atmel dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

Pitchumani pitchumani.s at atmel dot com changed:

   What|Removed |Added

 CC||pitchumani.s at atmel dot
   ||com

--- Comment #8 from Pitchumani pitchumani.s at atmel dot com 2012-01-04 
12:49:51 UTC ---
(In reply to comment #7)
 Hi Guys,
 
   I have decided to go ahead and check this patch in.  Please reopen this PR 
 if
 the problem resurfaces.
 
 Cheers
   Nick

Hi Nick,

Function 'elf32_avr_check_relocs(elf32-avr.c)' is referred in elflink.c:4801

(-- snip from elflink.c --)
 4799   if (! dynamic
 4800is_elf_hash_table (htab)
 4801bed-check_relocs != NULL
 4802elf_object_id (abfd) == elf_hash_table_id (htab)
 4803(*bed-relocs_compatible) (abfd-xvec, info-output_bfd-xvec))
(-- snip end --)

As 'bed-check_relocs' is NULL in 2.22, code that follows this check not
executed.
This caused a segmentation fault (NULL pointer access) in elf32-avr.c:1528.

Test case:
-- c source --
void func2(int a) { }

void func1(void)
{
  func2(10);
}

int main(void)
{
  func1();
}
-- c source --

command line options:
avr-gcc segfault.c -ffunction-sections -mmcu=atmega128 -c -o segfault.o
avr-ld segfault.o -m avr51 -relax

Please correct if I am missing something.

Thanks,
Pitchumani

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2012-01-04 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

--- Comment #9 from Nick Clifton nickc at redhat dot com 2012-01-04 17:08:05 
UTC ---
Created attachment 6145
  -- http://sourceware.org/bugzilla/attachment.cgi?id=6145
Load relocs if necessary

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2012-01-04 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

Nick Clifton nickc at redhat dot com changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |

--- Comment #10 from Nick Clifton nickc at redhat dot com 2012-01-04 17:09:07 
UTC ---
Hi Pitchumani,

  Please try out the uploaded patch (Load relocs if necessary) and let me
know if you have any problems with it.

Cheers
  Nick

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2012-01-04 Thread pitchumani.s at atmel dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

--- Comment #11 from Pitchumani pitchumani.s at atmel dot com 2012-01-05 
07:21:02 UTC ---
(In reply to comment #10)
 Hi Pitchumani,
 
   Please try out the uploaded patch (Load relocs if necessary) and let me
 know if you have any problems with it.
 
 Cheers
   Nick

This change solves the issue.

Thanks
Pitchumani

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2010-11-17 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

Nick Clifton nickc at redhat dot com changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||FIXED

--- Comment #7 from Nick Clifton nickc at redhat dot com 2010-11-17 10:56:37 
UTC ---
Hi Guys,

  I have decided to go ahead and check this patch in.  Please reopen this PR if
the problem resurfaces.

Cheers
  Nick

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2010-11-01 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

--- Comment #5 from Nick Clifton nickc at redhat dot com 2010-11-01 16:24:48 
UTC ---
Hi,

 I applied it to the 2.18 sources, the problem still persists.

My bad - I was using the current mainline binutils sources.  The old 2.18
sources have two places that need to be fixed, so please try out the newly
uploaded extra patch.  (Despite its name, this patch should be applied
instead of the delete elf32_avr_check_relocs patch).

Cheers
  Nick

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2010-11-01 Thread eric.weddington at atmel dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

Eric  Weddington eric.weddington at atmel dot com changed:

   What|Removed |Added

 CC||eric.weddington at atmel
   ||dot com

--- Comment #6 from Eric  Weddington eric.weddington at atmel dot com 
2010-11-01 19:28:28 UTC ---
(In reply to comment #0)
 Created attachment 5085 [details]
 ELF file which causes avr-ld to crash
 
 The attached ELF file causes avr-ld to crash:
 
 $ avr-ld govrout.o 
 Segmentation fault

Typically, avr-ld is not called directly, but through the driver (avr-gcc).
Plus you must also specify the device on the linker command line:
-mmcu=device.

Do you still get a crash when you do this?

Eric Weddington
Atmel

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2010-10-31 Thread meiermic at ee dot ethz.ch
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

--- Comment #3 from meiermic at ee dot ethz.ch 2010-10-31 18:16:44 UTC ---
Hi,

   Please could you try out the uploaded patch ?

I applied it to the 2.18 sources, the problem still persists. I had trouble
getting the Debian sources, but I can get that another shot.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2010-10-27 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

--- Comment #1 from Nick Clifton nickc at redhat dot com 2010-10-27 13:25:57 
UTC ---
Created attachment 5090
  -- http://sourceware.org/bugzilla/attachment.cgi?id=5090
Delete elf32_avr_check_relocs function

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2010-10-27 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

Nick Clifton nickc at redhat dot com changed:

   What|Removed |Added

 Status|NEW |WAITING
 CC||nickc at redhat dot com

--- Comment #2 from Nick Clifton nickc at redhat dot com 2010-10-27 13:27:36 
UTC ---
Hi,

  Please could you try out the uploaded patch ?

  It seems that the bug is in the elf32_avr_check_relocs() function, but since
this function does not actually do anything there is no reason to actually keep
it in the sources.

Cheers
  Nick

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils