[PATCH] x86: Mark __bss_start, _end and _edata locally defined

H.J. Lu hjl.tools@gmail.com
Mon May 14 10:51:00 GMT 2018
On Thu, May 10, 2018 at 7:37 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> __bss_start, _end and _edata are defined by linker to mark regions
> within executables and shared libraries.  All references within
> executables should be locally resolved.
>
> This patch doesn't change how their references within shared librarie
> are resolved.
>
> bfd/
>
>         PR ld/23162
>         * elfxx-x86.c (elf_x86_linker_defined): New function.
>         (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start,
>         _end and _edata locally defined within executables.
>
> ld/
>
>         PR ld/23162
>         * testsuite/ld-elf/pr23162.map: New file.
>         * testsuite/ld-elf/pr23162.rd: Likewise.
>         * testsuite/ld-elf/pr23162a.c: Likewise.
>         * testsuite/ld-elf/pr23162b.c: Likewise.
>         * testsuite/ld-elf/shared.exp: Run PR ld/23162 tests.

This is what I checked in.


-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Mark-__bss_start-_end-and-_edata-locally-defined.patch
Type: text/x-patch
Size: 6589 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20180514/5f211f1f/attachment.bin>


More information about the Binutils mailing list