[PATCH 1/2] Split top level .gitignore file
Move subdirectory parts of the top level .gitignore into appropriate subdirectories. This would be consistent with ChangeLog files, currently one has to update the top level ChangeLog file when the top level .gitignore file is changed in a way that affects specific subdirectories only. Signed-off-by: Dmitry V. Levin --- .gitignore| 157 +- ChangeLog | 4 ++ backends/.gitignore | 1 + backends/ChangeLog| 4 ++ config/.gitignore | 13 config/ChangeLog | 4 ++ debuginfod/.gitignore | 2 + debuginfod/ChangeLog | 4 ++ libcpu/.gitignore | 5 ++ libcpu/ChangeLog | 4 ++ libdw/.gitignore | 1 + libdw/ChangeLog | 4 ++ src/.gitignore| 17 + src/ChangeLog | 4 ++ tests/.gitignore | 112 ++ tests/ChangeLog | 4 ++ 16 files changed, 185 insertions(+), 155 deletions(-) create mode 100644 backends/.gitignore create mode 100644 config/.gitignore create mode 100644 debuginfod/.gitignore create mode 100644 libcpu/.gitignore create mode 100644 libdw/.gitignore create mode 100644 src/.gitignore create mode 100644 tests/.gitignore diff --git a/.gitignore b/.gitignore index 595760d4..0055ddae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -#* *# *.a *.o @@ -8,175 +7,23 @@ *.rej *.so *.so.1 -*/Makefile.in *~ .#* .deps .glimpse_* =* -/ABOUT-NLS -/INSTALL Makefile Makefile.in +/ABOUT-NLS +/INSTALL /aclocal.m4 /autom4te.* -/backends/*.map /config.cache /config.h /config.h.in /config.log /config.status -/config/ar-lib -/config/compile -/config/config.guess -/config/config.rpath -/config/config.sub -/config/depcomp -/config/install-sh -/config/libdw.pc -/config/libelf.pc -/config/libdebuginfod.pc -/config/missing -/config/test-driver -/config/ylwrap /configure /elfutils.spec -/libcpu/*_dis.h -/libcpu/*.mnemonics -/libcpu/*_gendis -/libcpu/*_lex.c -/libcpu/*_parse.[ch] -/debuginfod/debuginfod -/debuginfod/debuginfod-find -/libdw/known-dwarf.h -/src/addr2line -/src/ar -/src/elfclassify -/src/elfcmp -/src/elfcompress -/src/elflint -/src/findtextrel -/src/make-debug-archive -/src/nm -/src/objdump -/src/ranlib -/src/readelf -/src/size -/src/stack -/src/strings -/src/strip -/src/unstrip /stamp-h1 -/tests/*.log -/tests/*.trs -/tests/addrcfi -/tests/addrscopes -/tests/addsections -/tests/aggregate_size -/tests/alldts -/tests/all-dwarf-ranges -/tests/allfcts -/tests/allregs -/tests/arextract -/tests/arls -/tests/arsymtest -/tests/asm-tst1 -/tests/asm-tst2 -/tests/asm-tst3 -/tests/asm-tst4 -/tests/asm-tst5 -/tests/asm-tst6 -/tests/asm-tst7 -/tests/asm-tst8 -/tests/asm-tst9 -/tests/attr-integrate-skel -/tests/backtrace -/tests/backtrace-child -/tests/backtrace-child-biarch -/tests/backtrace-data -/tests/backtrace-dwarf -/tests/buildid -/tests/debugaltlink -/tests/debuginfod_build_id_find -/tests/debuglink -/tests/deleted -/tests/dwarfcfi -/tests/dwarf_default_lower_bound -/tests/dwarf-die-addr-die -/tests/dwarf-getmacros -/tests/dwarf-getstring -/tests/dwarf-ranges -/tests/dwelf_elf_e_machine_string -/tests/dwelfgnucompressed -/tests/dwfl-addr-sect -/tests/dwfl-bug-addr-overflow -/tests/dwfl-bug-fd-leak -/tests/dwfl-bug-getmodules -/tests/dwfl-bug-report -/tests/dwfllines -/tests/dwflmodtest -/tests/dwfl-proc-attach -/tests/dwfl-report-elf-align -/tests/dwfl-report-segment-contiguous -/tests/dwflsyms -/tests/early-offscn -/tests/ecp -/tests/elfcopy -/tests/elfgetchdr -/tests/elfgetzdata -/tests/elfputzdata -/tests/elfrdwrnop -/tests/elfshphehdr -/tests/elfstrmerge -/tests/elfstrtab -/tests/emptyfile -/tests/fillfile -/tests/find-prologues -/tests/funcretval -/tests/funcscopes -/tests/get-aranges -/tests/get-files -/tests/get-lines -/tests/getphdrnum -/tests/get-pubnames -/tests/getsrc_die -/tests/get-units-invalid -/tests/get-units-split -/tests/hash -/tests/leb128 -/tests/line2addr -/tests/low_high_pc -/tests/msg_tst -/tests/newdata -/tests/newfile -/tests/newscn -/tests/next_cfi -/tests/next-files -/tests/next-lines -/tests/peel_type -/tests/rdwrmmap -/tests/rerequest_tag -/tests/saridx -/tests/scnnames -/tests/sectiondump -/tests/show-abbrev -/tests/show-die-info -/tests/showptable -/tests/strptr -/tests/system-elf-libelf-test -/tests/test-elf_cntl_gelf_getshdr -/tests/test-flag-nobits -/tests/test-nlist -/tests/typeiter -/tests/typeiter2 -/tests/unit-info -/tests/update1 -/tests/update2 -/tests/update3 -/tests/update4 -/tests/varlocs -/tests/vdsosyms -/tests/vendorelf -/tests/xlate_notes -/tests/zstrptr /version.h diff --git a/ChangeLog b/ChangeLog index 072a7853..cfdc5699 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2020-12-19 Dmitry V. Levin + + * .gitignore: Move subdirectory patterns to separate .gitignore files. + 2020-12-15 Dmitry V. Levin * configure.ac (USE_NLS, AM_PO_SUBDIRS): Remove. diff --git a/backends/.gitignore b/backends/.gitignore new file mode 100644 index
[PATCH 2/2] Update .gitignore files
Signed-off-by: Dmitry V. Levin --- .gitignore| 2 ++ ChangeLog | 2 ++ config/.gitignore | 2 ++ config/ChangeLog | 2 ++ debuginfod/.gitignore | 1 + debuginfod/ChangeLog | 2 ++ tests/.gitignore | 2 ++ tests/ChangeLog | 2 ++ 8 files changed, 15 insertions(+) diff --git a/.gitignore b/.gitignore index 0055ddae..9bf350c1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ *# *.a +*.gcda +*.gcno *.o *.orig *.os diff --git a/ChangeLog b/ChangeLog index cfdc5699..dcbb1093 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2020-12-19 Dmitry V. Levin + * .gitignore: Add *.gcda and *.gcno. + * .gitignore: Move subdirectory patterns to separate .gitignore files. 2020-12-15 Dmitry V. Levin diff --git a/config/.gitignore b/config/.gitignore index 86a4dad2..8cd8ccdb 100644 --- a/config/.gitignore +++ b/config/.gitignore @@ -9,5 +9,7 @@ /libdw.pc /libelf.pc /missing +/profile.csh +/profile.sh /test-driver /ylwrap diff --git a/config/ChangeLog b/config/ChangeLog index 8527be52..41d0c6fe 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,5 +1,7 @@ 2020-12-19 Dmitry V. Levin + * .gitignore: Add /profile.csh and /profile.sh. + * .gitignore: New file. 2020-12-12 Dmitry V. Levin diff --git a/debuginfod/.gitignore b/debuginfod/.gitignore index 382fce63..e0ff6687 100644 --- a/debuginfod/.gitignore +++ b/debuginfod/.gitignore @@ -1,2 +1,3 @@ /debuginfod /debuginfod-find +/debuginfod.h diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog index 03e773d1..7caa27d7 100644 --- a/debuginfod/ChangeLog +++ b/debuginfod/ChangeLog @@ -1,5 +1,7 @@ 2020-12-19 Dmitry V. Levin + * .gitignore: Add /debuginfod.h. + * .gitignore: New file. 2020-12-12 Dmitry V. Levin diff --git a/tests/.gitignore b/tests/.gitignore index a9968335..d0e83da2 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -27,6 +27,7 @@ /backtrace-data /backtrace-dwarf /buildid +/core-dump-backtrace.lock /debugaltlink /debuginfod_build_id_find /debuglink @@ -86,6 +87,7 @@ /next_cfi /peel_type /rdwrmmap +/read_unaligned /rerequest_tag /saridx /scnnames diff --git a/tests/ChangeLog b/tests/ChangeLog index c3cd5557..13679f43 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,7 @@ 2020-12-19 Dmitry V. Levin + * .gitignore: Add /core-dump-backtrace.lock and /read_unaligned. + * .gitignore: New file. 2020-12-12 Mark Wielaard -- ldv
Re: [PATCH 1/2] Split top level .gitignore file
Hi Dmitry, On Sun, Dec 20, 2020 at 03:11:19PM +0300, Dmitry V. Levin wrote: > Move subdirectory parts of the top level .gitignore into appropriate > subdirectories. This would be consistent with ChangeLog files, > currently one has to update the top level ChangeLog file when the top > level .gitignore file is changed in a way that affects specific > subdirectories only. Both changes look good to me. The only thing I would double check is the /*.map entry in backends/.gitignore. It obviously comes from the top-level .gitignore. But I don't know why it was there in the first place. Thanks, Mark
Re: [PATCH 1/2] Split top level .gitignore file
On Sun, Dec 20, 2020 at 04:28:30PM +0100, Mark Wielaard wrote: > Hi Dmitry, > > On Sun, Dec 20, 2020 at 03:11:19PM +0300, Dmitry V. Levin wrote: > > Move subdirectory parts of the top level .gitignore into appropriate > > subdirectories. This would be consistent with ChangeLog files, > > currently one has to update the top level ChangeLog file when the top > > level .gitignore file is changed in a way that affects specific > > subdirectories only. > > Both changes look good to me. The only thing I would double check is > the /*.map entry in backends/.gitignore. It obviously comes from the > top-level .gitignore. But I don't know why it was there in the first > place. There used to be libebl_*.map files, removed by commit 4f937e24dc7ad1820fc7c99a6dd6422657f14666. I'll remove it from .gitignore in the second commit then. -- ldv
Re: [PATCH 1/2] Split top level .gitignore file
On Sun, Dec 20, 2020 at 06:37:36PM +0300, Dmitry V. Levin wrote: > On Sun, Dec 20, 2020 at 04:28:30PM +0100, Mark Wielaard wrote: > > Hi Dmitry, > > > > On Sun, Dec 20, 2020 at 03:11:19PM +0300, Dmitry V. Levin wrote: > > > Move subdirectory parts of the top level .gitignore into appropriate > > > subdirectories. This would be consistent with ChangeLog files, > > > currently one has to update the top level ChangeLog file when the top > > > level .gitignore file is changed in a way that affects specific > > > subdirectories only. > > > > Both changes look good to me. The only thing I would double check is > > the /*.map entry in backends/.gitignore. It obviously comes from the > > top-level .gitignore. But I don't know why it was there in the first > > place. > > There used to be libebl_*.map files, removed by commit > 4f937e24dc7ad1820fc7c99a6dd6422657f14666. > > I'll remove it from .gitignore in the second commit then. Apparently, it's the only entry in backends/.gitignore, and it's really not a good idea to have an empty backends/.gitignore file. I could do it in the reverse order: the first commit would update the top level .gitignore, and the second commit would split it. -- ldv
Re: [PATCH 1/2] Split top level .gitignore file
Hi Dmitry, On Sun, Dec 20, 2020 at 06:59:21PM +0300, Dmitry V. Levin wrote: > On Sun, Dec 20, 2020 at 06:37:36PM +0300, Dmitry V. Levin wrote: > > I'll remove it from .gitignore in the second commit then. > > Apparently, it's the only entry in backends/.gitignore, and it's really > not a good idea to have an empty backends/.gitignore file. > > I could do it in the reverse order: the first commit would update > the top level .gitignore, and the second commit would split it. Feel free to do it in either order or even simply merge the commits. I don't relly have a preference. You could also simply git rm the backends/.gitignore in the second commit. Cheers, Mark
Re: [RFC][PATCH] * bits/confname.h: Define _CS_POSIX_V7_THREADS_CFLAGS, _CS_POSIX_V7_THREADS_LDFLAGS
On 10/27/20 5:03 AM, Érico Nogueira via Libc-alpha wrote: From: Érico Rolim I would like to add these enums in order to conform to the POSIX specification: https://www.man7.org/linux/man-pages/man0/unistd.h.0p.html This change also helps musl-libc, since they want to have these defines with the same values as glibc. I tried to add them for the bits/confname.h and conform/data/unistd.h-data files following the example of the other values, but didn't know how to plug them into the confstr / __sysconf implementations. It's been a while since I touched this code, but IIRC you need to add your new variables to posix/posix-conf-vars.list. That said, could you please let me know if you have a copyright assignment agreement with the FSF? I suppose this change may be OK given that it is under 20 lines but one of the stewards could confirm for sure. Thanks, Siddhesh bits/confname.h| 7 ++- conform/data/unistd.h-data | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bits/confname.h b/bits/confname.h index 5dc8215093..fdc5403697 100644 --- a/bits/confname.h +++ b/bits/confname.h @@ -670,6 +670,11 @@ enum _CS_V6_ENV, #define _CS_V6_ENV_CS_V6_ENV -_CS_V7_ENV +_CS_V7_ENV, #define _CS_V7_ENV_CS_V7_ENV + +_CS_POSIX_V7_THREADS_CFLAGS, +#define _CS_POSIX_V7_THREADS_CFLAGS _CS_POSIX_V7_THREADS_CFLAGS +_CS_POSIX_V7_THREADS_LDFLAGS +#define _CS_POSIX_V7_THREADS_LDFLAGS _CS_POSIX_V7_THREADS_LDFLAGS }; diff --git a/conform/data/unistd.h-data b/conform/data/unistd.h-data index aa070528e8..6c4b52a733 100644 --- a/conform/data/unistd.h-data +++ b/conform/data/unistd.h-data @@ -367,6 +367,8 @@ constant _CS_POSIX_V7_LP64_OFF64_LIBS constant _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS constant _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS constant _CS_POSIX_V7_LPBIG_OFFBIG_LIBS +constant _CS_POSIX_V7_THREADS_CFLAGS +constant _CS_POSIX_V7_THREADS_LDFLAGS constant _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS constant _CS_V7_ENV # endif