Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kevin Daudt
aports
Commits
ba79957f
Commit
ba79957f
authored
Oct 05, 2020
by
Marian Buschsieweke
Committed by
Leo
Oct 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
community/binutils-avr: Drop package
community/binutils-cross-embedded now provides binutils-avr
parent
a5f5d080
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
103 deletions
+0
-103
community/binutils-avr/APKBUILD
community/binutils-avr/APKBUILD
+0
-57
community/binutils-avr/binutils-ld-fix-static-linking.patch
community/binutils-avr/binutils-ld-fix-static-linking.patch
+0
-46
No files found.
community/binutils-avr/APKBUILD
deleted
100644 → 0
View file @
a5f5d080
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname
=
binutils-avr
pkgver
=
2.35.1
pkgrel
=
0
pkgdesc
=
"Tools necessary to build programs for AVR targets"
url
=
"https://www.gnu.org/software/binutils/"
makedepends
=
"gettext libtool autoconf automake texinfo"
arch
=
"all"
license
=
"GPL-2.0 GPL-3.0-or-later LGPL-2.0 BSD"
subpackages
=
"
$pkgname
-doc"
source
=
"https://ftp.gnu.org/gnu/binutils/binutils-
$pkgver
.tar.xz
binutils-ld-fix-static-linking.patch"
builddir
=
"
$srcdir
/binutils-
$pkgver
"
_workingdir
=
"
$srcdir
/binutils-build"
# secfixes:
# 2.32-r0:
# - CVE-2018-19931
# - CVE-2018-19932
# - CVE-2018-20002
# - CVE-2018-20712
build
()
{
mkdir
"
$_workingdir
"
cd
"
$_workingdir
"
"
$builddir
"
/configure
\
--build
=
"
$CBUILD
"
\
--target
=
avr
\
--with-lib-path
=
/usr/lib
\
--prefix
=
/usr
\
--enable-ld
=
default
\
--enable-gold
=
yes
\
--enable-plugins
\
--disable-multilib
\
--disable-werror
\
--disable-nls
make
tooldir
=
/usr
}
check
()
{
cd
"
$_workingdir
"
make check
}
package
()
{
cd
"
$_workingdir
"
make
tooldir
=
/usr
install
DESTDIR
=
"
$pkgdir
"
rm
-rf
"
$pkgdir
"
/usr/share/info
for
bin
in
ar as nm objcopy objdump ranlib strip readelf
;
do
rm
-f
"
$pkgdir
"
/usr/bin/
"
$bin
"
done
}
sha512sums
=
"94ff72708403413b70b247f3af4099ebaa882b6659249869f1ed9941a0f1912e313f08357d470f9fd2359e7f5e5b0eb86285e5eaf883fa8187789d6b1bd304eb binutils-2.35.1.tar.xz
ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch"
community/binutils-avr/binutils-ld-fix-static-linking.patch
deleted
100644 → 0
View file @
a5f5d080
This fixes static linking for our hardened toolchain
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index e8126cb..9532bfb 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -235,8 +235,8 @@
test "${LARGE_SECTIONS}" = "yes" && LARGE_SECTIONS="
if test "${ENABLE_INITFINI_ARRAY}" = "yes"; then
SORT_INIT_ARRAY="KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))"
SORT_FINI_ARRAY="KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))"
- CTORS_IN_INIT_ARRAY="EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .ctors"
- DTORS_IN_FINI_ARRAY="EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .dtors"
+ CTORS_IN_INIT_ARRAY="EXCLUDE_FILE (*crtbegin*.o *crtend*.o $OTHER_EXCLUDE_FILES) .ctors"
+ DTORS_IN_FINI_ARRAY="EXCLUDE_FILE (*crtbegin*.o *crtend*.o $OTHER_EXCLUDE_FILES) .dtors"
else
SORT_INIT_ARRAY="KEEP (*(SORT(.init_array.*)))"
SORT_FINI_ARRAY="KEEP (*(SORT(.fini_array.*)))"
@@ -270,15 +270,14 @@
CTOR=".ctors ${CONSTRUCTING-0} :
doesn't matter which directory crtbegin.o
is in. */
- KEEP (*crtbegin.o(.ctors))
- KEEP (*crtbegin?.o(.ctors))
+ KEEP (*crtbegin*.o(.ctors))
/* We don't want to include the .ctor section from
the crtend.o file until after the sorted ctors.
The .ctor section from the crtend file contains the
end of ctors marker and it must be last */
- KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .ctors))
+ KEEP (*(EXCLUDE_FILE (*crtend*.o $OTHER_EXCLUDE_FILES) .ctors))
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
${CONSTRUCTING+${CTOR_END}}
@@ -286,9 +285,8 @@
CTOR=".ctors ${CONSTRUCTING-0} :
DTOR=".dtors ${CONSTRUCTING-0} :
{
${CONSTRUCTING+${DTOR_START}}
- KEEP (*crtbegin.o(.dtors))
- KEEP (*crtbegin?.o(.dtors))
- KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .dtors))
+ KEEP (*crtbegin*.o(.dtors))
+ KEEP (*(EXCLUDE_FILE (*crtend*.o $OTHER_EXCLUDE_FILES) .dtors))
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
${CONSTRUCTING+${DTOR_END}}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment