[Bug admin/25787] New: Xkunz

2020-04-05 Thread hadi891043 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25787

Bug ID: 25787
   Summary: Xkunz
   Product: binutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: admin
  Assignee: unassigned at sourceware dot org
  Reporter: hadi891043 at gmail dot com
  Target Milestone: ---

Created attachment 12436
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12436&action=edit
Hacked

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


[Bug ld/25677] Changes to --*magic options for pdp11-aout target

2020-04-05 Thread casner at acm dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25677

--- Comment #9 from Stephen Casner  ---
Another solution, perhaps the most straightforwad one, would be to change the
code in adjust_o_magic() to not pad the size of the data section if the size of
the bss section is zero.

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


[Bug ld/24769] [RISCV] partial RELRO doesn't work: .got is not in PT_GNU_RELRO

2020-04-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24769

Fangrui Song  changed:

   What|Removed |Added

 CC||wilson at gcc dot gnu.org

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


[Bug ld/24600] Support --start-lib --end-lib

2020-04-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24600

Fangrui Song  changed:

   What|Removed |Added

 CC||amodra at gmail dot com

--- Comment #1 from Fangrui Song  ---
This option can sometimes be more useful than a thin archive.

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


[Bug ld/20402] ld.bfd for emits *_RELATIVE relocations against SHN_ABS symbols

2020-04-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=20402

Fangrui Song  changed:

   What|Removed |Added

 CC||i at maskray dot me

--- Comment #9 from Fangrui Song  ---
Can be closed now.

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


[Bug ld/24613] ld --help for -z defs and --no-undefined

2020-04-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24613

Fangrui Song  changed:

   What|Removed |Added

 CC||i at maskray dot me

--- Comment #6 from Fangrui Song  ---
Hi Dilyan and Nick,

-Wl,--warn-unresolved-symbols is very rare. Making `-z defs
--warn-unresolved-symbols` warn rather than error may be fine. It is unlikely
to cause a friction.

# warning
% gold a1.o --warn-unresolved-symbols -z defs
a1.o(.text+0x1): warning: undefined reference to 'undef'
% ld.lld a1.o --warn-unresolved-symbols -z defs
ld.lld: warning: undefined symbol: undef
>>> referenced by a1.o:(.text+0x1)

# error
% ld.bfd a1.o --warn-unresolved-symbols -z defs
ld.bfd: a1.o: in function `_shared':
(.text+0x1): undefined reference to `undef'

Another similar option is --unresolved-symbols=report-all. All of GNU ld, gold
and lld warn with --warn-unresolved-symbols
% ld.bfd a1.o --warn-unresolved-symbols --unresolved-symbols=report-all
ld.bfd: a1.o: in function `_shared':
(.text+0x1): warning: undefined reference to `undef'

My understanding:

There are two kinds of unresolved references: 1) from object files 2) from
shared objects. --unresolved-symbols= toggles both bits while -z (un)defs and
--(no-)allow-shlib-undefined toggles one bit, respectively. I personally favor
the fine-grained options over --unresolved-symbols=

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


[Bug ld/24685] [RISCV] R_RISCV_CALL_PLT should not create a canonical PLT in -no-pie mode

2020-04-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=24685

--- Comment #2 from Fangrui Song  ---
Ping :/

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


[Bug gas/25789] New: [as] duplicate jmp when .nops and jmp are used together

2020-04-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25789

Bug ID: 25789
   Summary: [as] duplicate jmp when .nops and jmp are used
together
   Product: binutils
   Version: 2.35 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: i at maskray dot me
  Target Milestone: ---

foo:
  ret
.nops 88

jmp foo

=>

 :
   0:   c3  ret
   1:   eb 56   jmp59 
   3:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
   e:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  19:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  24:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  2f:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  3a:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  45:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  50:   66 0f 1f 84 00 00 00 00 00  nopWORD PTR [rax+rax*1+0x0]
  59:   eb a5   jmp0 

--

jmp foo

.nops 128
foo:
  ret

=>

 :
   0:   e9 80 00 00 00  jmp85 
   5:   eb 7e   jmp85 
   7:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  12:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  1d:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  28:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  33:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  3e:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  49:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  54:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  5f:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  6a:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  75:   66 66 2e 0f 1f 84 00 00 00 00 00data16 nop WORD PTR
cs:[rax+rax*1+0x0]
  80:   0f 1f 44 00 00  nopDWORD PTR [rax+rax*1+0x0]

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


[Bug gas/25789] [as] x86: duplicate jmp when .nops and jmp are used together

2020-04-05 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=25789

Fangrui Song  changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com
Summary|[as] duplicate jmp when |[as] x86: duplicate jmp
   |.nops and jmp are used  |when .nops and jmp are used
   |together|together

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