[Bug ld/25151] writing section `.text' at huge (ie negative) file offset

2019-11-03 Thread akobets at mail dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=25151

--- Comment #6 from Alexander Kobets  ---
The -Ttext-segment resolve a problem.
Do you know, how to compile with an option, that turns .note.gnu.property
section off?
I know, how to use strip, but it clears object so deep, and currently I simple
shift 'start' entrypoint around .note.gnu.property section.

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


[Bug gold/25159] New: internal error in define_default_version

2019-11-03 Thread anaveragehuman at icurse dot nl
https://sourceware.org/bugzilla/show_bug.cgi?id=25159

Bug ID: 25159
   Summary: internal error in define_default_version
   Product: binutils
   Version: 2.32
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gold
  Assignee: ccoutant at gmail dot com
  Reporter: anaveragehuman at icurse dot nl
CC: ian at airs dot com
  Target Milestone: ---

Created attachment 12062
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12062&action=edit
x.c

Using the attached x.c and x.map:

$ x86_64-pc-linux-gnu-gcc -shared -o libx.so -fPIC x.c
-Wl,--defsym=__gentoo_check_ldflags__=0
$ x86_64-pc-linux-gnu-gcc libx.so -Wl,--defsym=__gentoo_check_ldflags__=0
-Wl,--version-script=./x.map -Wl,--defsym=__gentoo_check_ldflags__=0

/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
internal error in define_default_version, at
/tmp/portage/sys-devel/binutils-2.32-r1/work/binutils-2.32/gold/symtab.cc:877
collect2: error: ld returned 1 exit status

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


[Bug gold/25159] internal error in define_default_version

2019-11-03 Thread anaveragehuman at icurse dot nl
https://sourceware.org/bugzilla/show_bug.cgi?id=25159

--- Comment #1 from anaveragehuman at icurse dot nl ---
Created attachment 12063
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12063&action=edit
x.map

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


[Bug ld/25154] Orphan section ".got" is placed differently

2019-11-03 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25154

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||amodra at gmail dot com
 Resolution|--- |INVALID

--- Comment #1 from Alan Modra  ---
(In reply to Fangrui Song from comment #0)
> The name ".got" is special.

That's true, but that isn't the whole reason why you are seeing this behaviour.
 The real reason is that your testcase is attempting to create non-allocated
sections.  These normally appear after allocated sections when linking. 
Because .got is known to be an "aw" section gas creates your relocatable object
file with .got being SHF_WRITE and SHF_ALLOC.

So not a linker bug.  Possibly could be characterized as an assembler bug, but
I see it as a feature that a needed flag is automatically added.  Users often
leave off the flags entirely.  gas will warn if you specify wrong flags for
known sections, eg. "ax" for .got.

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


[Bug ld/25151] writing section `.text' at huge (ie negative) file offset

2019-11-03 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25151

--- Comment #7 from Alan Modra  ---
(In reply to Alexander Kobets from comment #6)
> Do you know, how to compile with an option, that turns .note.gnu.property
> section off?

Not without spending some time looking.  It is likely to be a -m option.

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